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

Last reviewed: February 5, 1998
Article ID: Q145092
The information in this article applies to:
  • Microsoft Word for Windows 95, version 7.0

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.