The information in this article applies to:
SYMPTOMSWhen you record a Visual Basic for Applications macro in Microsoft Excel 97, the hidden DrawingObjects method is recorded in your macro. Specifically, the following line of code is recorded:
CAUSE
This behavior occurs when you record a macro in which you select all of the
objects in a worksheet.
WORKAROUNDIf you prefer to use the Shapes collection instead of the DrawingObjects method, replace the line of recorded code. To do this, search the macro for the following code:
Replace this code with the following code:
Both lines of code are functionally identical.
MORE INFORMATIONIn Microsoft Excel 97, you can select all the drawing objects in a worksheet by using the following steps:
If you perform these steps while recording a Visual Basic macro, the recorded code uses the older DrawingObjects method instead of the newer Shapes collection. This does not present a problem when you run the recorded code. Additional query words: 97 XL97
Keywords : kbdta kbdtacode KbVBA |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |