WordBasic: SetDocumentProperty Causes Illegal Instr. Error

ID: Q138612

The information in this article applies to:

SYMPTOMS

When you use the SetDocumentProperty command in a Word for Windows 95 macro, Word generates an Illegal Instruction error, and Word is shut down automatically. All unsaved work in Word is lost.

CAUSE

This error occurs when there are no documents currently open. The SetDocumentProperty command was not designed to be used when there are no documents open.

STATUS

Microsoft has confirmed this to be a problem in Word for Windows 95, version 7.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

Make sure a document is open before using the SetDocumentProperty command.

KBCategory: kbusage kbmacro buglist7.0 KBSubcategory: Additional reference words: word95 word7 7.0 winword

Version           : 7.0
Platform          : WINDOWS

Last Reviewed: February 5, 1998