Excel: GET.CHART.ITEM() Returns Error with ECHO(FALSE)

ID: Q63430


The information in this article applies to:


SUMMARY

In Microsoft Excel, the GET.CHART.ITEM() macro function may return a macro error when it is preceded by the ECHO(FALSE) command. To prevent this macro error from occurring, insert the ECHO(TRUE) command directly before the GET.CHART.ITEM() function.

This behavior is by design.


MORE INFORMATION

The ECHO(FALSE) command will make your macro run faster by suppressing screen refreshes. However, if you use this command along with a command that activates or changes the existing chart, your macro may halt and display the following error message

Macro error at cell: <cell_ref>
where <cell_ref> is the cell containing the GET.CHART.ITEM() command.

This problem will occur when one of the following is true:

Inserting the ECHO(TRUE) command directly before the GET.CHART.ITEM() command will cause the screen to update properly and the GET.CHART.ITEM() will then function as expected.

Additional query words: 2.20 4.00a 2.10b 2.10c 2.10d


Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: March 21, 1999