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:
  1. 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.
  2. 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.
  3. In Outlook 2000, you create or open another message.
  4. 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.

Modification Type:MajorLast Reviewed:5/22/2003
Keywords:kbbug kbpending KB224762