On 2002-10-16 19:52, Yodie wrote:
IE) How to create "blank" invoice forms from only creating ONE sheet. Such "blank" invoice forms must have sequential numbering on each form printed.
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim x As Integer
Dim Copies
Copies = InputBox("How Many Copies?")
If Copies = "" Then
Cancel = True
Exit Sub
End If
Application.EnableEvents = False
For x = 1 To Copies
With ActiveSheet
.PageSetup.LeftHeader = "Invoice No " & x
.PrintOut
End With
Next x
Cancel = True
Application.EnableEvents = True
End Sub