"Cannot Save or Create This File..." While Macro Is Running

Last reviewed: July 30, 1997
Article ID: Q109530
The information in this article applies to:
  • Microsoft Word for Windows, version 6.0

SYMPTOMS

The following error message may occur while a WordBasic macro is running in Word for Windows:

   Word cannot save or create this file. Make sure the disk is not
   write protected. <path><filename>

CAUSE

If your macro saves a document while it prints with the Background Printing option turned on, this error may occur. Word does not disable the Background Printing option while a macro is running. (To locate the Background Printing option, choose Options from the Tools menu and then select the Print tab.)

If you choose OK in the error message dialog box, the macro continues. When the macro stops running, you can save your file without any problem.

STATUS

Microsoft has confirmed this to be a problem in Word for Windows version 6.0. This problem was corrected in Word version 6.0a.

WORKAROUND

To avoid this error message when your macro saves a document, use the following syntax in your macro to turn off the Background Printing option when you print using the FilePrint command:

   FilePrint .Background = 0

Kbcategory: kbusage kbmacro KBSubcategory:


Additional query words: 6.0 winword word6
Version : 6.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: July 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.