WordBasic Error 504: Window Does Not Exist...Read-Only File

Last reviewed: August 4, 1997
Article ID: Q80465
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 Windows 95, version 7.0

SYMPTOMS

In Microsoft Word for Windows, if you open a document with the Read Only option selected and attempt to access that document's window using the Activate WordBasic command, Word for Windows generates the following error message:

   WordBasic Error 504: Window does not exist.

STATUS

Microsoft has confirmed this to be a problem in the versions of Microsoft Word listed above. We are researching this problem, and will post more information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The following macro results in the above WordBasic error message, if you open README.DOC as a read-only file. The error message does not occur if you open the file as a read-write file.

   Sub Main
   Document$="readme.doc"
   Activate Document$,1
   End Sub

For more information on the Activate command, search for "WordBasic Programming Language" and "Activate" using the Help.

REFERENCES

"Using WordBasic," by WexTech Systems and Microsoft, page 150

Kbcategory: kbusage kbmacro KBSubcategory:


Additional query words: errmsg err msg 7.0 word95 winword
word6 2.0 2.0a 2.0a 2.0b 2.0a-CD 2.0b 2.0a-CD winword2 6.0 6.0a
word7 6.0c
Version : 1.x 2.x 6.0 6.0a 6.0c 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: August 4, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.