Can't Dimension File New Dialog to Specify a Default TemplateLast reviewed: February 5, 1998Article ID: Q145092 |
The information in this article applies to:
SYMPTOMSYou 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.
STATUSMicrosoft 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.
WORKAROUNDYou 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 INFORMATIONIn 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |