Window.ActiveChart Property
Returns a Chart object that represents the active chart (either an embedded chart or a chart sheet). An embedded chart is considered active when it's either selected or activated. When no chart is active, this property returns Nothing.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
ReadOnly Property ActiveChart As Chart
Get
'Usage
Dim instance As Window
Dim value As Chart
value = instance.ActiveChart
Chart ActiveChart { get; }
Property Value
Type: Microsoft.Office.Interop.Excel.Chart
Remarks
If you don't specify an object qualifier, this property returns the active chart in the active workbook.