AfterPrint?

U

Ulf Nilsson

Hi,
I user Private Sub App_DocumentBeforePrint..., but is
there a thing called "Private Sub
App_DocumentAfterPrint"? If it does not exist, what do I
use?

/ Ulf
 
D

Doug Robbins

Any macro created with the same name of one of Word's built in commands will
run in place of that command. Therefor create macros that are so named and
have commands in them to do the printing and whatever else it is that you
want to do.

You will need macros named FilePrint and FilePrintDefault.

--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 
U

Ulf Nilsson

It's about my previous question Hide Fields. When I put
the color to wdColorWhite it works fine with the print
out, but I want the color to go back to black again after
print. How is this done?

/ Ulf
 
J

Jay Freedman

Hi Ulf,

After the PrintOut command, use ActiveDocument.Undo. Since the printing
itself can't be undone, the Undo applies to the color change that precedes
the PrintOut.

To make this work properly, you must set the Background parameter of the
PrintOut command to False. That forces VBA to wait until the document is
completely printed to the spooler before execution continues to the Undo
statement.
 

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

Top