WD2000: "Run-time Error 424: Object required" Accessing Shapes Collection in WordMail (224762)
The information in this article applies to:
- Microsoft Word 2000
- Microsoft Outlook 2000
This article was previously published under Q224762 SYMPTOMS
When you try to use the Visual Basic for Applications Shapes property or ShapeRanges property with a Microsoft WordMail message, the following error message appears:
Run-time Error 424: Object required
CAUSE
This problem becomes evident in the following scenario:
- In Microsoft Outlook 2000, you have selected Use Microsoft Word to edit e-mail messages, and you are using Microsoft Outlook Rich Text as your message editor.
- In Microsoft Outlook 2000, you create or open a message and then run any Visual Basic for Applications commands that access the Shapes collection or ShapeRanges collection; for example,
Msgbox ActiveDocument.Shapes.Count
and then you close the message. - In Outlook 2000, you create or open another message.
- Then you again run any Visual Basic for Applications commands that access the Shapes collection or ShapeRanges collection; for example,
Msgbox ActiveDocument.Shapes.Count
WORKAROUND
To work around this problem, use HTML as your message editor format.
To set the message format for e-mail messages in Outlook 2000, do the following:
- In Outlook 2000, on the Tools menu, click Options.
- On the Mail Format tab, select the message format you want to use from the Send in this message format list.
- Click OK.
To use Word 2000 to edit e-mail messages, do the following:
- In Outlook 2000, on the Tools menu, click Options.
- Click to select the Use Microsoft Word to edit e-mail messages check box.
- Click OK.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. MORE INFORMATIONFor more information about using Microsoft Word to edit e-mail messages, click Microsoft Outlook Help on the Help menu, type Word Editor in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
| Modification Type: | Major | Last Reviewed: | 5/22/2003 |
|---|
| Keywords: | kbbug kbpending KB224762 |
|---|
|