Excel: Error Running Recorded Macro That Creates Chart Object

Last reviewed: July 16, 1997
Article ID: Q89714

The information in this article applies to:
  • Microsoft Excel for the Macintosh, version 4.0

Summary:

In Microsoft Excel for the Macintosh, when recording a macro that creates a chart object, the resulting macro places a CANCEL.COPY() command immediately after the COPY() command and preceding the CREATE.OBJECT() command. CREATE.OBJECT() reads information from the Excel Clipboard to create the chart object. Since CANCEL.COPY() clears the Excel Clipboard, CREATE.OBJECT() has no information with which to create the chart and a macro error results.

More Information:

Workaround

The purpose for the CANCEL.COPY() command is to clear the copy marquee. This command should be placed after the CREATE.OBJECT() command to allow the macro to execute properly. When recording the same macro in Excel for Windows, the CANCEL.COPY() command is correctly placed after CREATE.OBJECT().

Microsoft is researching this problem and will post new information here as it becomes available.

Reference(s):

"Microsoft Excel Function Reference," version 4.0, pages 45, 77-79


Additional query words: 4.0 4.00

Keywords : kbprg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.