title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Chart.Select event (Excel) |
vbaxl10.chm500083 |
|
|
00ea6501-e92e-5b95-f2b0-bb9b014bb5ec |
04/16/2019 |
medium |
Occurs when a chart element is selected.
expression.Select (ElementID, Arg1, Arg2)
expression An expression that returns a Chart object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
ElementID | Required | Long | The selected chart element. For more information about this argument, see the BeforeDoubleClick event. |
Arg1 | Required | Long | The selected chart element. For more information about this argument, see the BeforeDoubleClick event. |
Arg2 | Required | Long | The selected chart element. For more information about this argument, see the BeforeDoubleClick event. |
This example displays a message box if the user selects the chart title.
Private Sub Chart_Select(ByVal ElementID As Long, _
ByVal Arg1 As Long, ByVal Arg2 As Long)
If ElementId = xlChartTitle Then
MsgBox "please don't change the chart title"
End If
End Sub
[!includeSupport and feedback]