Can't Dimension File New Dialog to Specify a Default Template

ID: Q145092

The information in this article applies to:

SYMPTOMS

You cannot use WordBasic to display the File New dialog box with a default template other than Blank Document. This functionality is different from previous versions of Word.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Word for Windows 95. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

You can work around this problem by using a macro that selects a specific template. The following macro example opens a new document based on the Test template.

Sub Main
   FileNew .Template="Test", .NewTemplate=0
End Sub

MORE INFORMATION

In Word 6.0, the following macro opens the File New dialog box and sets TEST.DOT as the default template.

Sub Main
   Dim Dlg As FileNew
   GetCurValues dlg
   dlg.Template = "test.dot"
   If Dialog(dlg) Then FileNew dlg
End Sub

KBCategory: kbusage kbmacro KBSubcategory:

Additional query words: 7.0 word95 word7

Version           : 7.0
Platform          : WINDOWS

Last Reviewed: January 20, 1999