Hello again,
I have this macro:
If I execute the macro I get this window first:
But if I hit Cancel (Annuler) the script goes on and print anyway.
Anyway I can prevent that?
Claude
I have this macro:
Code:
Sub PrintPDF()
'
' PrintPDF Macro
'
'
Application.Dialogs(xlDialogPrinterSetup).Show
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub
If I execute the macro I get this window first:
But if I hit Cancel (Annuler) the script goes on and print anyway.
Anyway I can prevent that?
Claude