Word 2003: .NewTemplate and .Display broken for wdDialogFileNew?

P

Palahala

Could someone please run the following snippet on an English version of Word
2003...?

Sub myFileNew
With Dialogs(wdDialogFileNew)
.Display
MsgBox "NewTemplate = " & .NewTemplate
End With
End Sub

This simply shows the File New dialog, wich in the rightmost part of the
dialog has a radio button option:

New
(x) Document ( ) Template

or at least in Dutch:

Nieuw
(x) Document ( ) Sjabloon

In Word 97, the value of that option would then be reflected in .NewTemplate
being either 0 or 1, or one could preset the radio button to Template by
forcing it to be 1 prior to calling .Display.

For Word 2003, all documentation still shows that .NewTemplate should be
supported. And that .Display would only show the dialog, and should not take
any action after clicking OK.

In Word 2003, the Dutch version, this seems to be broken. I can still set
the value using the macro, and I will get that specific value back after
..Display completes -- so somehow Word still knows this is a valid option (it
will not let me set bogus properties), but somehow it is no longer linked to
the radio button. Also setting it prior to calling .Display does not have
any effect on the radio button itself: "(x) Document" is selected no matter
what...

Even worse: though above I use .Display, and do *not* call .Show or
..Execute, the selected document is opened no matter what! Why? Note that
other dialogs, like wdDialogFileOpen still work as expected when using
..Display

So I wonder, for non-Dutch versions:

- what does the message box print after changing the radio button?
- does Word open the file?

Thanks very much for trying!
Palahala.
 
Top