Sub Page_Print()
Dim p As Long
Dim ws As Worksheet
p = 1
For Each ws In ActiveWindow.SelectedSheets
ws.Activate
For x = 1 To Application.ExecuteExcel4Macro("Get.Document(50)")
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E7").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E37").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E66").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E95").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E124").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E153").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E183").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E212").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E241").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E270").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E299").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E329").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E358").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E387").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E416").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E445").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E475").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E504").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E533").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E562").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
ElseIf Range("E591").Value <> "" Then
ActiveSheet.PrintOut From:=x, To:=x
End If
p = p + 1
Next x
Next ws
End Sub