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..
- To post as a guest, your comment is unpublished.· 2 years agoSorry I have no idea.
Kutools for Excel is a powerful add-in that frees you from performing time-consuming operations in Excel, such as combine sheets quickly, merge cells without losing data, paste to only visible cells, count cells by color and so on. 300+ powerful features / functions for Excel 2019, 2016, 2013, 2010, 2007 or Office 365!
It enables tabbed browsing, editing, and managing of Microsoft Office applications. You can open multiple documents / files in a single tabbed window, such as using the browser IE 8/9/10, Firefox, and Google Chrome. It's compatible with Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365. Demo
Kutools for Outlook is a powerful add-in that frees you from time-consuming operations which majority of Outlook users has to perform daily! It can save your time from using Microsoft Outlook 2019, 2016, 2013, 2010 or Office 365!
Kutools for Word is a powerful add-in that frees you from time-consuming operations which majority of Word users have to perform daily! It can save your time from using Microsoft Word / Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365!
Restores the old look and menus of Office 2003 to Microsoft Office 2019, 2016, 2013, 2010, 2007 or Office 365. Don’t lose time in finding commands on the new Ribbon. Easy to deploy to all computers in enterprises and organizations.
Have you ever tried to print multiple copies of one sheet with sequence page numbers? That means to print 10 copies of one sheet, and fill the Cell A1 in the 1st copy with 001, in the 2nd copy with 002…, and in the 10th copy with 010. In Excel, there is no built-in feature can solve this job, but in this article, I introduce a macro code to help you quickly print multiple copies with sequence page number in Excel.
Following below steps to print multiple copies of one sheet with sequence numbers by VBA code
1. Enable the sheet you want to print, and press Alt + F11 keys to open the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste below code to the Module script. See screenshot:
VBA: Print copies with sequence page numbers.
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
Note: in the code, A1 is the cell you want to place the sequence number, 1 To 10 indicates to print 10 copies, and "'00" & I is the sequence format, you can change them as you need.
3. Press F5 key to run the code, and a dialog pops out to remind you that print 10 copies. Click OK to close the dialog, then each printed copy has its own sequence number.