Name
chart
.GetChartElement(x
, y
, ElementID
, Arg1
, Arg2
)
Synopsis
Gets information about the chart object at specific screen coordinates.
Argument |
Settings |
---|---|
|
The x-coordinate of the object. |
|
The y-coordinate of the object. |
|
An |
|
Information about the object. See Table 16-1. |
|
Information about the object. See Table 16-1. |
The x
and y
arguments are input arguments; ElementID
, Arg1
, and Arg2
are output arguments. The meaning of the output arguments varies based on the type of object (x, y); Table 16-1 describes those returned values.
Table 16-1. Meaning of GetChartElement output arguments
If ElementID is... |
then Arg1 is... |
and Arg2 is... |
---|---|---|
|
xlAxisGroup |
xlAxisType |
xlPivotChartDropZone |
xlPivotFieldOrientation |
Not set |
xlPivotChartFieldButton |
xlPivotFieldOrientation |
The index of the column in the |
|
The index of the group within the |
Not set |
|
Not set |
Not set |
|
The index of the series in the |
The index of the point in the |
|
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.