The information in this article applies to:
SYMPTOMSIn Microsoft Word for Windows, if you write a macro that uses the FileSaveAs macro command and gives the document the same name as an existing file, Word overwrites the existing file without warning. CAUSEThere is a documentation error on page 208 of "Using WordBasic" by WexTech Systems and Microsoft. The same error appears in the Microsoft Word version 2.0 for Windows Help menu topic titled "FileSaveAs." The following statement is incorrect:
This error does not appear in Word version 6.0 Help menu topic titled,
"FileSaveAs Statement."
WORKAROUNDThe following message DOES appear if you run the FileSaveAs command by choosing Save As from the File menu and you type a filename that already exists: If you want this message to appear when you use the FileSaveAs command in a macro, your macro must call the Save As dialog box from the File menu, as shown in the following macro:
Reference(s):
"Using WordBasic," by WexTech Systems and Microsoft, page 208 Additional query words: docerr doc err 2.0 word6 7.0 word95 word7 winword 6.0 winword2
Keywords : kbhelp |
Last Reviewed: September 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |