Microsoft KB Archive/52040

{|
 * width="100%"|

Optional Parameter Specification for Excel's GET.CHART.ITEM

 * }

-

The information in this article applies to:


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

-

SUMMARY
The parameters point_index and item_text for GET.CHART.ITEM(x_y_index, point_index,item_text) are optional parameters. There is no standard in Microsoft Excel for the use of optional parameters, so the specific types of use follow:


 * 1) If both point_index and item_text are omitted completely, regardless of whether the commas are used as place holders, the default values (explained on pages 294-296 of the &quot;Microsoft Excel Functions and Macros,&quot; versions 2.x manual) are used. There is no special case here for the omission of commas. That is, if the commas are included in the formula, with nothing in either of the slots, it is the same as having left the commas out. The following examples are equivalent:

GET.CHART.ITEM(1)

GET.CHART.ITEM(1,)

GET.CHART.ITEM(1,,)
 * 1) If the default for point_index is used, and no item on the active chart is selected, the macro containing this function will halt during execution with a macro error. The resulting cell will contain #VALUE!.