Hi Kavy
Yes, copy and paste all of your code (AFTER the wsf.printout line) again, underneath the "bypass_print:" line, but there's no need to include my "Exit Sub" line right at the bottom.
This way, if the print goes OK, then the code just continues as normal to the "Exit Sub" line then stops.
If the user cancels the print, the code errors, goes to the "bypass_print:" line, tells the user that the print's failed, but then carries on as if nothing's happened.
Code:
Sub blah()
'your code here....
On Error GoTo bypass_print
wsf.PrintOut
'rest of your code here
Exit Sub
bypass_print: MsgBox "Bypass invoked, printout failed, or was cancelled"
'rest of your "normal" code here again, but only after the wsf.printout line
End Sub
Hope this works for you