Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

DocumentBeforePrint in Word 97

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Dormer - 22 Jul 2005 05:33 GMT
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
Jonathan West - 22 Jul 2005 12:52 GMT
>I just realised that this isn't implemented in Word97.
> Took me a little while to figure out why it wasn't triggering. <g>
[quoted text clipped - 3 lines]
> 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.

Signature

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 

Helmut Weber - 22 Jul 2005 12:59 GMT
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"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.