Assistance with Numbering Sheets Based on Copies Printed

rwong8

New Member
Joined
Dec 22, 2020
Messages
3
Platform
  1. Windows
Hello

New member here! I have a process in which I have to print various copies of the same worksheets day by day depending on the schedule. Based on the number of copies printed, I would like each worksheet printed numbered based on the number of copies I print. For example, if I needed to print 5 copies of the same worksheet, I would like each of worksheets numbered 1, 2, 3, 4 or 5.

What would be the easiest way to accomplish this? I was originally a cell in which you enter the value of the number of copies printed, and a button which would automatically begin the printing process, and would also number each worksheet. Any help would be appreciated!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
With the number of copies in A1 :
VBA Code:
Sub v()
Dim c&
For c = 1 To [A1]
    With ActiveSheet
        .PageSetup.CenterFooter = c
        .PrintOut
    End With
Next
End Sub
 
Upvote 0
Hey Footoo

This VBA code worked perfectly thank you very much!

I did have one modification that I am trying to make, but am having some difficulty. As of right now, those numbers "1,2,3,4, or 5" are going to the bottom of the page in a footer. What would needed to be done if I wanted these numbers instead of in the footer of the document, to be inserted into a certain cell? For example, if I wanted it to be inserted in cell "J4"?
 
Upvote 0
VBA Code:
Sub v()
Dim c&
For c = 1 To [A1]
    With ActiveSheet
        .[J4] = c
        .PrintOut
    End With
Next
End Sub

Make sure you clear the footer inserted by the previous code.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top