Canceling a print job

  • Thread starter Thread starter Dan Scholler
  • Start date Start date
There is no VBA syntax for this that I am aware of. You would probably have
to use the Window's api.
 
If you mean the print job has already started, there's no way in VBA to abort
it.

OTOH, if you mean the user tries to print and you want to prevent that, you
can do that with an event macro.

In the ThisWorkbook module, select the Workbook_BeforePrint sub. That sub has
a Cancel argument. If your code sets it to True, printing is cancelled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cannot Dismiss the MsgBox 3
Can't cancel print job 5
Input box cancel 1
canceling print jobs 3
cancel print job 1
can't cancel print job 5
Print Job will not delete 4
HP printers won't cancel print jobs 1

Back
Top