"Enter" or "Ok" button execution from dialog box in macro

T

timc

i am using the Dialogs(wdDialogFilePrint) command in a macro to undisplay
(??) the printer dialogue box that keeps popping up in a macro. what is the
sytax for pressing the enter key. i tried execute but the dialogue box still
appears.
 
J

Jonathan West

timc said:
i am using the Dialogs(wdDialogFilePrint) command in a macro to undisplay
(??) the printer dialogue box that keeps popping up in a macro. what is
the
sytax for pressing the enter key. i tried execute but the dialogue box
still
appears.

If you want to print a document without displaying the dialog, use the
PrintOut method.


--
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
 

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