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

ID: Q109530

The information in this article applies to:

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

Last Reviewed: July 30, 1997