Word 2003: Display the Print Setup dialogue box in code

M

Maz

Hi,

I want to display the built in Word dialog (wdDialogFilePrintSetup) via code.
One of the arguments it takes is Options (see here
http://msdn.microsoft.com/en-us/library/aa211930(office.11).aspx)

But when I display the dialog the Options button at the bottom left hand
corner of the dialog is always grayed out, regardless of what I set the
Options property to. However, if I manually add this Word command (Tools,
Customize, Commands tab, File) the Options button is displayed!

How can I get the Options button enabled via code please?



Sub X()

With Dialogs(wdDialogFilePrintSetup)
.Options = 1 // if used, Option button disabled.
.Options = True // if used, Option button disabled.
.Show
End With
End Sub
 

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