Bonjour,
Dans son message, < Marcus K > écrivait :
In this message, < Marcus K > wrote:
|| is there a way to catch some event in Word like 'documentAfterPrint' that
|| occures after Printing a document? I know there is a documentBeforePrint
|| event but I need to make changes to the recently printed document not
before
|| the document is printed.
||
Copy the following code in a template module:
'_______________________________________
Sub FilePrint()
'To intercept File > Print and CTRL-P
MyPrintSub
End Sub
'_______________________________________
'_______________________________________
Sub FilePrintDefault()
'To intercept the Standard toolbar button
MyPrintSub
End Sub
'_______________________________________
'_______________________________________
Sub MyPrintSub()
Dialogs(wdDialogFilePrint).Show
'Your code here, e.g:
MsgBox "I am done printing."
End Sub
'_______________________________________
The sub names must be exactly as shown here. If you need more help, I would
suggest you start a new thread in the vba.general group.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org