Add number of copies to a print

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi Glenn,

This is not exactly what i want.

On the place where i now can put manualy "what ever i like" i want to fill that automaticly with PrintOut Copies:=2 or PrintOut Copies:=3 etc.

So that i can see on my printout how many times it's copied. Is that possible?

Thanks
 
Last edited:
Upvote 0
Hi Glenn,

This is not exactly what i want.

On the place where i now can put manualy "what ever i like" i want to fill that automaticly with PrintOut Copies:=2 or PrintOut Copies:=3 etc.

So that i can see on my printout how many times it's copied. Is that possible?

Thanks
 
Last edited:
Upvote 0
I found some code on this site: http://www.rondebruin.nl/print.htm


Sub PrintCopies_ActiveSheet_1()
Dim CopiesCount As Long
Dim CopieNumber As Long
CopiesCount = Application.InputBox("How many copies do you want", Type:=1)

For CopieNumber = 1 To CopiesCount
With ActiveSheet
' This example print the number in cell A1
.Range("A1").Value = CopieNumber & " of " & CopiesCount

'If you want the number in the footer use this line
'.PageSetup.LeftFooter = CopieNumber & " of " & CopiesCount

'Print the sheet
.PrintOut
End With
Next CopieNumber
End Sub

Only i want Excel to pickup my copiecount from the input box from the printwindow. Is that possible?
 
Upvote 0
Only i want Excel to pickup my copiecount from the input box from the printwindow. Is that possible?
No. I've given you an example of what to do, and you even coded your own solution, but without putting the header that you wanted in. Here is your same code with the header that you requested in it:
Code:
Sub printx2()
'
' printx2 Macro
' Macro recorded 28-02-2011 by
'

'
   For Each ws In ActiveWindow.SelectedSheets
    ws.PageSetup.CenterHeader = "PrintOut Copies:=2"
   Next
    Application.ActivePrinter = "Zebra Stripe 600 on LPT1:"
    ActiveWindow.SelectedSheets.PrintOut Copies:=2, ActivePrinter:= _
        "Zebra Stripe 600 on LPT1:", Collate:=True
End Sub

You could specify the number of copies from a cell entry somewhere or by using InputBox as Ron DeBruin suggests.
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,222
Members
453,152
Latest member
ChrisMd

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