GetCurrentDataSet Method Example

The following example retrieves the object reference to the current dataset for the Line/Multiline chart.

Private Sub CommandButton2_Click()

Dim objDataSet As Object

Set objDataSet = LineChart1.GetCurrentDataSet()

' Set the color of the dataset to its complement.

objDataSet.DataSetColor = objDataSet.DataSetColor Xor (-1)

End Sub