before print

C

Charles Maxson

Don

All you do create a macro "FilePrint" that allows you to intercept the print
command, add in your own dialog box, then add the code that would print out
the document as normal:


Sub FilePrint()
MsgBox "I am printing " + ActiveDocument.Name
ActiveDocument.PrintOut
End Sub


NOTE the macro must be name FilePrint!!!!
 
D

Doug Robbins

To add to Chuck response, there are a number of printing commands in Word
(You can see them by accessing the Word Commands under the Macro-in pull
down in the Macros dialog). For example "FilePrintDefault" and
"FilePrintAll" To capture all attempts to print the document, you will need
a macro with the name of each of them.

--
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
 

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