Originally Posted by
XLGibbs
Try this out Bacon.
In the attached file I assigned a button outside the invoice area to fire the code..
[VBA]
Sub PrintALLInvoices()
Dim rngID As Range, c As Range
Dim lRow As Long
Application.ScreenUpdating = False
With Sheets("Sheet1")
lRow = .Cells(.Rows.Count, 1).End(xlUp).Row
Set rngID = .Range("A2:A" & lRow)
End With
With Sheets("Bill Example ")
For Each c In rngID
Range("B10") = c
.PageSetup.PrintArea = "$B$2:$H$52"
.PrintOut
Next c
End With
Application.ScreenUpdating = True
Set c = nothing, rngID = nothing
End Sub
[/VBA]
You will need to modify the sheet names as appropriate for your live file..