Hi All
Firstly, I found this section of code in another post, and it works a treat. So, if your bit of code many thanks!
Sub Workbook_BeforePrint(Cancel As Boolean)
Dim x As Integer
Dim Copies
Copies = InputBox("How many copies would you like?")
If Copies = "" Then
Cancel = True
Exit Sub
End If
Application.EnableEvents = False
For x = 1 To Copies
With ActiveSheet
.PageSetup.LeftHeader = "Pre Pack " & x
.PrintOut
End With
Next x
Cancel = True
Application.EnableEvents = True
End Sub
Right, What this does is print out pages each with a unique page number on, but I want it to start at a specific page number.
Also I would like to change the size of font in the header, is this possible too?
Many thanks for your help.
Gav
Firstly, I found this section of code in another post, and it works a treat. So, if your bit of code many thanks!
Sub Workbook_BeforePrint(Cancel As Boolean)
Dim x As Integer
Dim Copies
Copies = InputBox("How many copies would you like?")
If Copies = "" Then
Cancel = True
Exit Sub
End If
Application.EnableEvents = False
For x = 1 To Copies
With ActiveSheet
.PageSetup.LeftHeader = "Pre Pack " & x
.PrintOut
End With
Next x
Cancel = True
Application.EnableEvents = True
End Sub
Right, What this does is print out pages each with a unique page number on, but I want it to start at a specific page number.
Also I would like to change the size of font in the header, is this possible too?
Many thanks for your help.
Gav