ไปยังเนื้อหาหลัก

วิธีเปลี่ยนชื่อแผ่นงานหลายแผ่นใน Excel

โดยปกติในการเปลี่ยนชื่อแผ่นงานใน Excel เราสามารถคลิกสองครั้งที่แท็บแผ่นงานได้อย่างรวดเร็วหรือคลิกขวาที่แท็บแผ่นงานเพื่อเลือกคำสั่งเปลี่ยนชื่อสำหรับการเปลี่ยนชื่อแผ่นงาน ค่อนข้างสะดวกในการเปลี่ยนชื่อแผ่นงานหนึ่งหรือสองแผ่นใน Excel แต่ถ้าเราต้องการเปลี่ยนชื่อแผ่นงานหลายแผ่นภายในการดำเนินการเดียวเราจะทำอย่างไร?

doc เปลี่ยนชื่อแผ่นงาน 6

ใช้คำสั่งเปลี่ยนชื่อเพื่อเปลี่ยนชื่อแผ่นงาน

ใช้เครื่องมือที่มีประโยชน์เพื่อเปลี่ยนชื่อแผ่นงานหลายแผ่นได้อย่างสะดวกสบาย

การใช้รหัส VBA เพื่อเปลี่ยนชื่อแผ่นงานหลายแผ่น


ใช้คำสั่งเปลี่ยนชื่อเพื่อเปลี่ยนชื่อแผ่นงาน


เราสามารถเปลี่ยนชื่อแผ่นงานใน Excel ได้อย่างรวดเร็วด้วยไฟล์ ตั้งชื่อใหม่ คำสั่งตามขั้นตอนต่อไปนี้:

คลิกขวาที่แท็บแผ่นงานที่คุณต้องการเปลี่ยนชื่อแล้วเลือก ตั้งชื่อใหม่ คำสั่งจากเมนูคลิกขวา หรือดับเบิลคลิกที่แท็บแผ่นงานเพื่อเปลี่ยนชื่อแผ่นงาน จากนั้นพิมพ์ชื่อใหม่จากนั้นกด เข้าสู่ คีย์เพื่อเปลี่ยนชื่อดูภาพหน้าจอ:

ด้วยสิ่งนี้ ตั้งชื่อใหม่ คำสั่งคุณสามารถเปลี่ยนชื่อแผ่นงานได้ครั้งละหนึ่งแผ่นเท่านั้นเพื่อจุดประสงค์ในการเปลี่ยนชื่อแผ่นงานหลายแผ่นโปรดทำซ้ำการดำเนินการข้างต้น

เปลี่ยนชื่อเวิร์กชีตหลายรายการได้อย่างง่ายดายด้วยข้อความ ค่าเซลล์ หรือค่าเซลล์ที่ระบุในแต่ละชีต

La เปลี่ยนชื่อแผ่นงานหลายแผ่น ยูทิลิตี้ของ Kutools สำหรับ Excel สามารถช่วยให้คุณเปลี่ยนชื่อแผ่นงานหลายแผ่นพร้อมกันใน Excel ได้อย่างง่ายดาย ทดลองใช้ฟีเจอร์เต็มรูปแบบฟรี 30 วันทันที!

Kutools สำหรับ Excel - เพิ่มประสิทธิภาพ Excel ด้วยเครื่องมือที่จำเป็นมากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! Get It Now


ใช้เครื่องมือที่มีประโยชน์เพื่อเปลี่ยนชื่อแผ่นงานหลายแผ่นได้อย่างสะดวกสบาย

La เปลี่ยนชื่อแผ่นงานหลายแผ่น เครื่องมือของ Kutools สำหรับ Excel ค่อนข้างมีประโยชน์สำหรับการเปลี่ยนชื่อแผ่นงานทั้งหมดหรือแผ่นงานเฉพาะที่เลือกของสมุดงานปัจจุบัน

ด้วยเครื่องมือนี้คุณสามารถเปลี่ยนชื่อแผ่นงานทั้งหมดหรือแผ่นงานที่เลือกได้อย่างรวดเร็วโดยการเพิ่มเนื้อหาเพิ่มเติมก่อนหรือหลังชื่อแผ่นงานที่มีอยู่หรือแทนที่ชื่อแผ่นงานเดิมด้วยชื่อใหม่ คุณยังสามารถเปลี่ยนชื่อแผ่นงานทั้งหมดหรือแผ่นงานที่เลือกโดยใช้เนื้อหาของเซลล์ช่วง

หลังจาก ดาวน์โหลดและติดตั้ง Kutools สำหรับ Excelคลิก Kutools พลัส > แผ่นงาน > เปลี่ยนชื่อแผ่นงาน เพื่อเปิด เปลี่ยนชื่อแผ่นงานหลายแผ่น กล่องโต้ตอบ จากนั้นโปรดดำเนินการดังนี้:

สถานการณ์ที่ 1 เปลี่ยนชื่อแผ่นงานหลายแผ่นด้วยข้อมูลเฉพาะโดยใช้ Kutools for Excel

doc เปลี่ยนชื่อแผ่นงาน 5

  1. เลือกแผ่นงานที่คุณต้องการเปลี่ยนชื่อจาก แผ่น รายการ.
  2. เลือกหนึ่งประเภทที่คุณต้องการเปลี่ยนชื่อแผ่นงานภายใต้ เปลี่ยนชื่อตัวเลือก
  3. ใส่ค่าเฉพาะลงใน จากช่องป้อนข้อมูล.
  4. คลิก OK. คุณจะได้รับผลลัพธ์ดังต่อไปนี้:

doc เปลี่ยนชื่อแผ่นงาน 6

สถานการณ์ที่ 2 เปลี่ยนชื่อแผ่นงานหลายแผ่นด้วยค่าเซลล์โดยใช้ Kutools for Excel

doc เปลี่ยนชื่อแผ่นงาน 7

  1. เลือกแผ่นงานที่คุณต้องการเปลี่ยนชื่อจาก แผ่น รายการ.
  2. เลือกหนึ่งประเภทที่คุณต้องการเปลี่ยนชื่อแผ่นงานภายใต้ เปลี่ยนชื่อตัวเลือก
  3. คลิก  ปุ่ม doc เพื่อเลือกค่าของเซลล์ที่คุณต้องการตั้งชื่อเวิร์กชีตตามภายใต้ จากช่วงเฉพาะ มาตรา.
  4. คลิก OK. คุณจะได้รับผลลัพธ์ดังต่อไปนี้:

doc เปลี่ยนชื่อแผ่นงาน 8

สถานการณ์ที่ 3 เปลี่ยนชื่อแผ่นงานหลายแผ่นโดยมีค่าเซลล์เฉพาะในแต่ละแผ่นงานโดยใช้ Kutools for Excel

doc เปลี่ยนชื่อแผ่นงาน 9

  1. เลือกแผ่นงานที่คุณต้องการเปลี่ยนชื่อจาก แผ่น รายการ.
  2. เลือกหนึ่งประเภทที่คุณต้องการเปลี่ยนชื่อแผ่นงานภายใต้ เปลี่ยนชื่อตัวเลือก
  3. คลิก  ปุ่ม doc เพื่อเลือกค่าเซลล์เฉพาะที่คุณต้องการตั้งชื่อเวิร์กชีตโดยยึดตาม เปลี่ยนชื่อแผ่นงานด้วยเซลล์เฉพาะ มาตรา.
  4. คลิก OK. ชื่อแผ่นงานถูกเปลี่ยนชื่อด้วยค่าเซลล์เฉพาะในแต่ละแผ่นงาน

doc เปลี่ยนชื่อแผ่นงาน 10

ปลาย: หากต้องการใช้คุณสมบัตินี้ คุณควรติดตั้ง Kutools สำหรับ Excel ก่อนอื่นโปรด คลิกเพื่อดาวน์โหลดและทดลองใช้ฟรี 30 วัน ขณะนี้

การใช้รหัส VBA เพื่อเปลี่ยนชื่อแผ่นงานหลายแผ่น

ที่นี่ฉันจะแนะนำรหัส VBA สองรหัสเพื่อเปลี่ยนชื่อแผ่นงานหลายแผ่น

รหัส 1 รหัส VBA เพื่อเปลี่ยนชื่อแผ่นงานหลายแผ่นตามชื่อที่คุณต้องการในคราวเดียว

ด้วยรหัส VBA ต่อไปนี้คุณสามารถเปลี่ยนชื่อแผ่นงานทั้งหมดของสมุดงานปัจจุบันได้อย่างรวดเร็วโดยใช้คำนำหน้าเหมือนกันในชื่อแผ่นงานเช่น: KTE-order1, KTE-order 2 และ KTE-order 3 ...

1. คลิกที่ ผู้พัฒนา > ของ Visual Basicและคลิก สิ่งที่ใส่เข้าไป > โมดูล ใน แอปพลิเคชัน Microsoft Visual Basic Windows.

2. โปรดคัดลอกและวางรหัสต่อไปนี้ลงในไฟล์ โมดูล.

VBA: เปลี่ยนชื่อแผ่นงานทั้งหมดโดยป้อนชื่อเฉพาะ

Sub ChangeWorkSheetName()
'Updateby20140624
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
newName = Application.InputBox("Name", xTitleId, "", Type:=2)
For i = 1 To Application.Sheets.Count
    Application.Sheets(i).Name = newName & i
Next
End Sub

3.  คลิก doc- เปลี่ยนชื่อหลายแผ่นงาน -4 เพื่อรันโค้ดและป้อนชื่อที่คุณต้องการลงในกล่องโต้ตอบป๊อปอัพดูภาพหน้าจอ:

doc เปลี่ยนชื่อแผ่นงาน 2

4. คลิก OK. จากนั้นคุณจะเห็นแผ่นงานทั้งหมดถูกเปลี่ยนชื่อ

doc เปลี่ยนชื่อแผ่นงาน 3

2. รหัส VBA เพื่อเปลี่ยนชื่อแผ่นงานหลายแผ่นตามค่าเซลล์เฉพาะในแต่ละแผ่นงานของสมุดงานที่ใช้งานอยู่

การใช้รหัส VBA ต่อไปนี้จะเปลี่ยนชื่อแผ่นงานทั้งหมดของสมุดงานปัจจุบันโดยใช้เนื้อหาของเซลล์เฉพาะ ตัวอย่างเช่นคุณสามารถพิมพ์ชื่อแผ่นงานในเซลล์ A1 ของสมุดงานทั้งหมดจากนั้นแผ่นงานจะเปลี่ยนชื่อเป็นค่าเซลล์ A1

1.  โปรดระบุเซลล์ที่จะมีชื่อแผ่นงานในแต่ละแผ่นงานและพิมพ์ชื่อแผ่นงานลงไป ในตัวอย่างนี้ฉันจะพิมพ์ชื่อเวิร์กชีตในเซลล์ A1 ในแต่ละแผ่นงาน

2.  คลิก ผู้พัฒนา > ของ Visual Basicและคลิก สิ่งที่ใส่เข้าไป > โมดูล ใน แอปพลิเคชัน Microsoft Visual Basic หน้าต่าง

3.  โปรดคัดลอกและวางรหัสต่อไปนี้ลงในโมดูล

VBA: เปลี่ยนชื่อแผ่นงานตามเนื้อหาเซลล์เฉพาะ

Sub RenameTabs()
'Updateby20140624
 For x = 1 To Sheets.Count
 If Worksheets(x).Range("A1").Value <> "" Then
 Sheets(x).Name = Worksheets(x).Range("A1").Value
 End If
 Next
 End Sub

4.  คลิก doc- เปลี่ยนชื่อหลายแผ่นงาน -4 ปุ่มเพื่อรันโค้ด worsheets ทั้งหมดถูกเปลี่ยนชื่อตามเนื้อหาของเซลล์ A1

หมายเหตุ:

  • ในโค้ดด้านบน A1 คือเนื้อหาของเซลล์ที่คุณต้องการเปลี่ยนชื่อเวิร์กชีตตามคุณสามารถเปลี่ยนได้ตามความต้องการของคุณ
  • หากเซลล์ที่ระบุไม่มีเนื้อหา แผ่นงานของเซลล์นั้นจะไม่ถูกเปลี่ยนชื่อ

Demo: เปลี่ยนชื่อแผ่นงานหลายแผ่นด้วย Kutools for Excel


Kutools สำหรับ Excel: เครื่องมือแสนสะดวกกว่า 300 รายการอยู่แค่เพียงปลายนิ้วสัมผัส! เริ่มทดลองใช้ฟรี 30 วันโดยไม่มีข้อจำกัดด้านฟีเจอร์ตั้งแต่วันนี้ Download Now!
Comments (23)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, I am trying to rename tabs but the rename function in the dropdown list is grey and I have no idea how to activte it. Please help.
Regards
John
This comment was minimized by the moderator on the site
Useless without kutools. What a waste of time.
This comment was minimized by the moderator on the site
i wants some requirments
1: i wants two or more blank sheets between two main sheets.

2: i want to copy one condent from sheet 1 to other sheets, at the same time the heading condet sheet name wil be chenged both sheets. that

sheet 01 heading is sheet 01. icopy the condent and paste it to other 1500 sheet at the same time i want to change the sheet name will be changed sheet 02, sheet 03 this orderly

3: i want to copy one condent from first sheet and i want to paste it some specific pages..
This comment was minimized by the moderator on the site
Good day,
Sorry can't help you with that yet. Welcome to post any question in our forum: https://www.extendoffice.com/forum.html to get more Excel support from out Excel professional or other Excel fans.
This comment was minimized by the moderator on the site
This is fab, I've been happily using '2. VBA code to rename multiple worksheets by specific cell value in each worksheet of the active workbook for months but now work have upgraded to Excel 2010 and it doesn't work anymore... can't find a similar solution online - any suggestions?
This comment was minimized by the moderator on the site
Thats great!!!, thank you very much for sharing vba codes. they are very useful
This comment was minimized by the moderator on the site
Thats great!!!, thank you very much for sharing vba codes. they are very useful
This comment was minimized by the moderator on the site
What if we want to have the numbers in descending order from 52 to 1?
This comment was minimized by the moderator on the site
I need to rename worksheets with data in cell Q5, however, multiple worksheets contain the same data in Q5. How can I tell Excel to rename those worksheets with the data in Q5 and just add something (like 1 or 2) after the name? I hope this makes sense.
This comment was minimized by the moderator on the site
I have tried to come up with something very similar, I have worksheet that has 2 columns and 119 rows. I need to take A1:B1 put them together and rename 3rd worksheet, next A2:B2, put them together and rename 4th worksheet, on until row 119. I have been hitting my head on the monitor trying to come up with easy way to do this. Any help would be much appreciated!
This comment was minimized by the moderator on the site
I have been looking for something very similar to these, however...I have sheet that has 2 columns and 119 rows. I need to combine A1:B1, start at the 3rd worksheet to rename the tab, next would be A2:B2, rename the 4th tab, so on and so forth. I have been beating my head against monitor and can't figure this one out...any help would be appreciate it.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations