Microsoft KB Archive/63430

{|
 * width="100%"|

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

 * }

-

The information in this article applies to:


 * Microsoft Excel for the Macintosh, versions 2.2, 3.0, 4.0
 * Microsoft Excel for Windows, versions 2.x, 3.0, 4.0, 4.0a
 * Microsoft Excel for OS/2, versions 2.x, 3.0

-

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: 

where  is the cell containing the GET.CHART.ITEM command.

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


 * Your macro makes changes in the chart that will not be shown on the screen due to the ECHO(FALSE) command. (For example, if the item specified in the GET.CHART.ITEM statement has been moved or deleted.)

-or-
 * Your macro activates the chart after executing the ECHO(FALSE) command, and you specify &quot;Axis n&quot; for the item_text argument (or in the case of a 3-D chart you specify &quot;Floor&quot;, &quot;Walls&quot; or &quot;Corners&quot;).

NOTE: Most of the other item_text options will work in this case.

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 :

Technology :