Hi guys,
What have a I messed here, it will cancel but wont print...
What have a I messed here, it will cancel but wont print...
VBA Code:
Sub PrintOut()
Application.ScreenUpdating = False
Application.Dialogs(xlDialogPrinterSetup).Show
If vbCancel Then
MsgBox "Cancelled"
Columns("F:H").Select
Selection.EntireColumn.Hidden = True
Columns("K").Select
Selection.EntireColumn.Hidden = True
ActiveSheet.PrintOut
Columns("F:H").Select
Selection.EntireColumn.Hidden = False
Columns("K").Select
Selection.EntireColumn.Hidden = False
MsgBox "Printed"
Range("A2").Select
End Sub