Open Print Dialog

C

ChelseaWarren

Some time ago I created a macro that would open the print dialog box. I
placed it on my toolbar, but I accidently reset the toolbars and can't
remember how I created that macro.

Can anyone help?

Thanks.
 
J

Jay Freedman

Some time ago I created a macro that would open the print dialog box. I
placed it on my toolbar, but I accidently reset the toolbars and can't
remember how I created that macro.

Can anyone help?

Thanks.

At the simplest, all you need is

Dialogs(wdDialogFilePrint).Show

You can, if you want, pre-fill the file name box, choose the initial
folder, set the document type, and so forth. You can also use the
..Display method instead of .Show, so that the file doesn't open
automatically when the user clicks OK, but your macro gets back the
information about the chosen folder and file name and can do other
things with it. See
http://www.word.mvps.org/FAQs/MacrosVBA/WordDlgHelp.htm for
information.
 
Top