XL98: Error with Recorded Macro Using EditionOptions Method (187583)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q187583 SYMPTOMS
If you record a macro that uses the EditionOptions method, the macro may
not run when you play it back. When you run the recorded macro, you may
receive the following error message:
Run-time error '438':
Object doesn't support this property or method
NOTE: You may also receive this error message if you run a macro that you
created in Microsoft Excel for the Macintosh version 5.0 in Excel 98
Macintosh Edition.
CAUSE
You receive this error message when you run your recorded macro because the
macro recorder in Microsoft Excel 98 Macintosh Edition incorrectly uses the
ActiveWorkbook object instead of the Range object with the EditionOptions
method.
NOTE: You receive the error if you run a macro that you created in Excel
for the Macintosh 5.0 because the object model in Excel 98 has changed. The
EditionOptions method in Excel 5.0 applies to the Workbook object, but in
Excel 98, it applies to the Range object.
RESOLUTION
In order for your macro to run without error in Excel 98, change the
line(s) of code that use the EditionOptions method so that they use the
Range object instead of the Workbook object. See the "More Information"
section of this article for more details.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Excel 98
Macintosh Edition.
REFERENCES
For more information about the EditionOptions method, from the Visual Basic
Editor, click the Office Assistant, type editionoptions, click Search,
and then click to view "EditionOptions Method."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If the Assistant is not able to answer your query, please
see the following article in the Microsoft Knowledge Base:
176476 OFF: Office Assistant Not Answering Visual Basic Questions
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbbug kberrmsg kbpending KB187583 |
---|
|