Syntax
Public Function ActivateChartByID(ChartId As Long) As Boolean
Thisfunction is used to make the given chart identifier is the active chart.
Parameters
Key | Description |
Index | The chart position on the chart windows to be active. A value of type Long. |
Return value
Returns true when activating the chart succeeded else return false. In order to get false, call GetLastError() function.
Sample
Public Sub main() Dim Chart_ID Chart_ID = GetChartIDByIndex(2) AlertMessage ActivateChartByID (clng(Chart_ID)) End Sub
See Also