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

วิธีการพิมพ์หลายสำเนาพร้อมหมายเลขหน้าลำดับ

คุณเคยพยายามพิมพ์หลายสำเนาในแผ่นเดียวพร้อมหมายเลขหน้าตามลำดับหรือไม่? นั่นหมายถึงการพิมพ์ 10 สำเนาในหนึ่งแผ่นและเติมเซลล์ A1 ในสำเนาที่ 1 ด้วย 001 ในสำเนาที่ 2 ด้วย 002 …และในสำเนาที่ 10 ด้วย 010 ใน Excel ไม่มีคุณสมบัติในตัวที่สามารถแก้ปัญหาได้ งานนี้ แต่ในบทความนี้ขอแนะนำมาโครโค้ดเพื่อช่วยให้คุณพิมพ์สำเนาหลายชุดได้อย่างรวดเร็วพร้อมหมายเลขหน้าลำดับใน Excel

พิมพ์สำเนาด้วยตัวเลขที่แตกต่างกันโดยใช้รหัส VBA


ลูกศรสีฟ้าฟองขวา พิมพ์สำเนาด้วยตัวเลขที่แตกต่างกันโดยใช้รหัส VBA

ทำตามขั้นตอนด้านล่างเพื่อพิมพ์สำเนาหลายชุดในแผ่นเดียวพร้อมหมายเลขลำดับตามรหัส VBA

1. เปิดใช้งานแผ่นงานที่คุณต้องการพิมพ์แล้วกดปุ่ม Alt + F11 เพื่อเปิด Microsoft Visual Basic สำหรับแอปพลิเคชัน หน้าต่าง

2 คลิก สิ่งที่ใส่เข้าไป > โมดูลและวางโค้ดด้านล่างลงในไฟล์ โมดูล สคริปต์ ดูภาพหน้าจอ:

VBA: พิมพ์สำเนาพร้อมหมายเลขหน้าลำดับ

Sub PrintCopiesWithNumbers()
'UpdatebyEntendoffice20161031
    Dim i As Integer
    Application.ScreenUpdating = False
    For i = 1 To 10
        Range("A1").Value = "'00" & i
       ActiveSheet.PrintOut
    Next i
    Application.ScreenUpdating = True
    MsgBox "Totally print" & (i - 1) &"copies", vbInformation, "Kutools for Excel"
End Sub

doc พิมพ์สำเนาด้วยหมายเลข 1

หมายเหตุ: ในรหัส A1 คือเซลล์ที่คุณต้องการวางหมายเลขลำดับ 1 10 ต้องการ ระบุว่าจะพิมพ์ 10 สำเนาและ "'00" & I เป็นรูปแบบลำดับคุณสามารถเปลี่ยนได้ตามต้องการ

3 กด F5 เพื่อเรียกใช้รหัสและกล่องโต้ตอบจะปรากฏขึ้นเพื่อเตือนคุณว่าพิมพ์ 10 สำเนา คลิก OK เพื่อปิดกล่องโต้ตอบจากนั้นสำเนาที่พิมพ์แต่ละชุดจะมีหมายเลขลำดับของตัวเอง
doc พิมพ์สำเนาด้วยหมายเลข 2

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
Comments (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I NEED TO PRINT PAGE 1 TWICE, PAGE 2 TWICE PAGE 3 TWICE AND SO ON. IS THERE A WAY TO ADD TO THIS VBA CODE TO DO THAT? IN OTHER WORDS I NEED TO PRINT EACH PAGE IN THE SEQUENCE 2 TIMES BACK TO BACK 1,1 2,2 3,3 4,4 AND SO ON .
THANK YOU FOR ANY HELP
This comment was minimized by the moderator on the site
I need my starting number to be 7 digits ( 2223675 )
This comment was minimized by the moderator on the site
I am working on a checklist. Column C and Column M are my columns with sequence numbers in it. I want them to update everytime I print and continue all the way up to 950. So one sheet contains 1 - 60. I would need to print 16 pages once I figure out how to get those columns C10:C39 and M10:M39 to continue updating with each print. Can you assist?
This comment was minimized by the moderator on the site
I'm using this with MS word, and when I run it, a message box pops up " Compile error, sub or function not defined "
This comment was minimized by the moderator on the site
Hi, Fish, this code is avaliable in MS Excel, not Word.
This comment was minimized by the moderator on the site
how can I saved the sequence of copies in one pdf file? Thanks! 
This comment was minimized by the moderator on the site
Thanks, very helpful.But i need to print 2 sequential number on 1 page. Can help?
This comment was minimized by the moderator on the site
Sorry, I do not understand your requerments.
This comment was minimized by the moderator on the site
thanks !! its helpful and my work is done :)
This comment was minimized by the moderator on the site
when i am pressing f5 nothing is happening what to do?
This comment was minimized by the moderator on the site
Go to the ribbon of the Microsoft Visual Basic Applications windown, and click Run.
This comment was minimized by the moderator on the site
go to Run menu item and manually click on run .
This comment was minimized by the moderator on the site
Hi,
I was looking for this kind of code butc with a twist..
When printing 10 copies it should say ot id how many it is.. Ex. 001 of 010 and so on..
Any help?
This comment was minimized by the moderator on the site
did you find any help on this? looking for the same
This comment was minimized by the moderator on the site
Sorry I have no idea.
This comment was minimized by the moderator on the site
What is sequence format refer
This comment was minimized by the moderator on the site
Hello, the sequence refer to the copies number.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations