WD: Avoiding Password Prompt Using FileNew Command

ID: Q80090


The information in this article applies to:
  • Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
  • Microsoft Word for the Macintosh, versions 6.0, 6.0.1


SUMMARY

In a Microsoft Word macro, if you use the FileNew command to create a new document or template based on a password-protected template, you receive a prompt for the template's password. The only way to avoid receiving this prompt is to have the specified template already open.


MORE INFORMATION

In Word macros, the FileOpen command may use a PASSWORDDOC and/or a PASSWORDDOT field to provide the password for the given document and/or the template that it is based on. The FileNew command does not have either of these fields; therefore, when you create a new document or template based on a specific template, you cannot specify a password inside the macro to avoid the password prompt.

For additional information, please see the following article(s) in the Microsoft Knowledge Base:

Q79644 WinWord: Assigning Passwords to Template Files
Kbcategory: kbusage kbmacro

Additional query words: 2.0 winword2 6.0.1 winword word6 wordbasic statement protection macword

Keywords : winword word6 winword2
Version : MACINTOSH:6.0,6.0.1; WINDOWS:2.0,2.0a,2.0a-CD,2.0b,2.0c,6.0,6.0a,6.0c
Platform : MACINTOSH WINDOWS
Issue type :


Last Reviewed: November 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.