Microsoft KB Archive/224762

= WD2000: "Run-time Error 424: Object required" Accessing Shapes Collection in WordMail =

Article ID: 224762

Article Last Modified on 5/22/2003

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition
 * Microsoft Outlook 2000 Standard Edition

-



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:
 * 1) In Outlook 2000, on the Tools menu, click Options.
 * 2) On the Mail Format tab, select the message format you want to use from the Send in this message format list.
 * 3) Click OK.

To use Word 2000 to edit e-mail messages, do the following:
 * 1) In Outlook 2000, on the Tools menu, click Options.
 * 2) Click to select the Use Microsoft Word to edit e-mail messages check box.
 * 3) Click OK.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
For 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.

Keywords: kbbug kbpending KB224762

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.