chelseasikoebs
Board Regular
- Joined
- Mar 9, 2009
- Messages
- 61
I thought this would be really easy, but it's not working. I wanted it to look at a cell on page 1 and if it's empty, do nothing, but if it has content in it, print page 1, then go on to page 2 and do the same thing all the way through to page 6. But I can't even get page 1 to work!
Code:
Sub PrintPurchLogs()
Dim x As Range
For Each x In Range("D10")
If IsEmpty(x) Then
'do nothing
Else
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate:=False, IgnorePrintAreas:=False
End If
End Sub