M
Montana DOJ Help Desk
Word 2000
I have the following subroutine:
Sub FilePrint()
Message = "FilePrint"
PrintRecords
End Sub
My goal here is to have FilePrint run every time the document is printed, no
matter how the user prints the document. When I select "Print" from the
File menu, or use CTRL+P, I get the "FilePrint" message, indicating that the
FilePrint routine ran. However, if I print by clicking the Print button on
the toolbar, I get no message at all, but the document still prints,
indicating that the FilePrint routine is not running when the Print button
on the toolbar is used.
Is there a way to intercept the print operation when the user clicks the
Print button on the toolbar?
I've searched in the VB Help and have come up empty. Currently, the only
solution I can think of is to create a custom toolbar that is identical to
the Standard toolbar, except that the Print button would call the FilePrint
macro.
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."
I have the following subroutine:
Sub FilePrint()
Message = "FilePrint"
PrintRecords
End Sub
My goal here is to have FilePrint run every time the document is printed, no
matter how the user prints the document. When I select "Print" from the
File menu, or use CTRL+P, I get the "FilePrint" message, indicating that the
FilePrint routine ran. However, if I print by clicking the Print button on
the toolbar, I get no message at all, but the document still prints,
indicating that the FilePrint routine is not running when the Print button
on the toolbar is used.
Is there a way to intercept the print operation when the user clicks the
Print button on the toolbar?
I've searched in the VB Help and have come up empty. Currently, the only
solution I can think of is to create a custom toolbar that is identical to
the Standard toolbar, except that the Print button would call the FilePrint
macro.
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."