Macro to print a page-or not, based on a cells content.
Code:
Sub Printing()
'
' Printing Macro
' Macro recorded 15/12/2005 by Lenah
'
' Keyboard Shortcut: Ctrl+p
'
Application.ScreenUpdating = False
Sheets("Invoice").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=4, Collate:=True
Sheets("SAD500").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
'Print this sheet only if cell AX4=>2
Sheets("SAD501-1").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
'Print this sheet only if cell AX4=3
Sheets("SAD501-2").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Sheets("Manhood").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=2, Collate:=True
Sheets("Invoice").Select
Application.ScreenUpdating = True
End Sub
Hope the code sample is sufficient.
Thanks a mil.