DocumentBeforePrint in Word 97

M

Mark Dormer

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
 
J

Jonathan West

Mark Dormer said:
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
 
H

Helmut Weber

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"
 

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