Number Printing

rsandrews

New Member
Joined
Mar 21, 2009
Messages
6
I would like to print a excel sheet and each time I print this sheet
a new number would be place on that printed sheet.
Like a invoce number.

So if I would print 50 sheets it could be number from 1 to 50 on each sheet
or if I printed 10 sheets it would be number from 1 to 10?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
If all of the sheets are single page sheets, how about using the
View>Header and Footer, and on either, click on the icon with a hash(#) on which is the Page Number icon

Mark:)
 
Upvote 0
Are you saying that

(a) you want to go to File > Print and enter 50 in the number of copies to be printed and have each copy individually numbered; or

(b) that each time you print one copy of a sheet that you want to increment the page number somewhere?

(b) is easy so no doubt it's (a) :biggrin:
 
Upvote 0
then every page would number 1 all the time
Not so if you select all of the relevant tabs (CTRL + Click the Sheet Tab) that you want to print, and then print

If you are printing 50 Single Page Sheets (TABS), and all have the same footer formatting (ie the Page # icon) then it WILL show and print Page 1, 2, 3 ....50. Try under print preview to see what I mean

However I suspect that what you want is something different anyway

Mark:)
 
Upvote 0
Try this instead

Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With Sheets("Sheet1").Range("B8")
    .Value = .Value + 1
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,552
Messages
6,114,278
Members
448,559
Latest member
MrPJ_Harper

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