Add number of copies to a print

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Yeah, sure, you type it in when the print dialog appears.
 
Upvote 0
Hi,

On the paper/label i print i want to see the number i typed in the print dialog.

So if i print the paper/label 4x i want to see this on my printout.

Is that possible?

On this workbook i don't use VBA. But if that's the only way then i want to do it that way.
 
Upvote 0
Hello,

I know i can add pagenumbers with header or footer. But from this page i have only one witch i have to print several times.


Regards
 
Upvote 0
Do the printing via VBA, and set the number of copied in there, and set the header or footer to contain that number. How are you intending to specify the number of copies? Is there a cell in your workbook somewhere, where you'll type the number of copies to print? Or will you want your macro to prompt for number of copies? Using the macro recorder is a good starting point for automating processes, by the way.
 
Upvote 0
I did record a macro and assigned that to a button. So if i click that button it wil print the page/label that many times.

How can i set the header or footer to contain that number?

Sub printx2()
'
' printx2 Macro
' Macro recorded 28-02-2011 by '

'
ActiveWindow.SelectedSheets.PrintOut Copies:=2, Collate:=True
End Sub
 
Upvote 0
put this before the print:
Code:
    For Each ws In ActiveWindow.SelectedSheets
        ws.PageSetup.CenterHeader = "my header"
    Next
and change "my header" to whatever you want.
 
Upvote 0
put this before the print:
Code:
    For Each ws In ActiveWindow.SelectedSheets
        ws.PageSetup.CenterHeader = "my header"
    Next
and change "my header" to whatever you want.

So should it look like this?

Code:
Sub printx2()
'
' printx2 Macro
' Macro recorded 28-02-2011 by
'

'
   For Each ws In ActiveWindow.SelectedSheets
    ws.PageSetup.CenterHeader = "my header"
    Next
    Application.ActivePrinter = "Zebra Stripe 600 on LPT1:"
    ActiveWindow.SelectedSheets.PrintOut Copies:=2, ActivePrinter:= _
        "Zebra Stripe 600 on LPT1:", Collate:=True
End Sub
 
Upvote 0
Yes, but change "my header" to whatever you want.
 
Upvote 0

Forum statistics

Threads
1,224,562
Messages
6,179,526
Members
452,923
Latest member
JackiG

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