How to force Word to print a document without displaying any alert ?

O

Oscar

MS Word seems to hang about 1 minute before it prints the document that has
been programmed by VBA. In case that the Word object is made visible and
press at print it reports that there is a margin setting beyond ........
Obviously the problem is that it waits for a user interaction to press at OK
or Cancel. After a long while then it prints the document though. Is there a
property or argument to force Word to print the document directly. I've
tried the objWord.DisplayAlerts method but that didn't help maybe because
it's not associated with printing.

regards,
Oscar
 
W

Word Heretic

G'day "Oscar" <[email protected]>,

Guess: Before starting the print, use sendkeys to queue up an Enter or
an ESCape.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Oscar reckoned:
 

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