I just realised that this isn't implemented in Word97.
Took me a little while to figure out why it wasn't triggering. <g>

I am after a workaround, can't find one using Google, which is surprising.

Regards
Mark Dormer

Re: DocumentBeforePrint in Word 97 by Helmut

Helmut
Fri Jul 22 06:59:20 CDT 2005

Hi Mark,

intercept the printout-methode.

Greetings from Bavaria, Germany

Helmut Weber, MVP, WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"






Re: DocumentBeforePrint in Word 97 by Jonathan

Jonathan
Fri Jul 22 06:52:29 CDT 2005


"Mark Dormer" <markd@mvpsx.org> wrote in message
news:uXv%23UanjFHA.1948@TK2MSFTNGP12.phx.gbl...
>I just realised that this isn't implemented in Word97.
> Took me a little while to figure out why it wasn't triggering. <g>
>
> I am after a workaround, can't find one using Google, which is surprising.
>
> Regards
> Mark Dormer
>
>

Hi Mark,

Create macros named FilePrint and FilePrintDefault, like this

Sub FilePrintDefault()
'Your custom code goes here
ActiveDocument.Printout
End Sub

Sub FilePrint()
'Your custom code goes here
Dialogs(wdDialogFilePrint).Show
End Sub

The macros will run in place of the built-in commands of the same name.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org