I have tried to write some code to set up a print macro, but I can't get it to work.
Basically I want to print C100:P167, then C200:P267, C300:P367. I need to repeat this 425 times, starting 100 rows down each time. I have the following so far:
What have a done wrong?
Thank you!
Andrea
Basically I want to print C100:P167, then C200:P267, C300:P367. I need to repeat this 425 times, starting 100 rows down each time. I have the following so far:
Sub printeachcontracttest()
'
' printeachcontracttest Macro
'
Dim i As Long
For i = 100 To 106
Range("c" & i, "p" & i + 67).Select
ActiveSheet.PageSetup.PrintArea = Range("c" & i, "p" & i + 67)
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
i = i + 100
Next i
'
End Sub
What have a done wrong?
Thank you!
Andrea