Data. Activate Method
Activates the first window of the workbook associated with the chart.
public: void Activate();
public void Activate ();
abstract member Activate : unit -> unit
Public Sub Activate ()
If the chart is linked to a Microsoft Excel workbook, this method does not run any Auto_Activate or Auto_Deactivate macros that might be attached to the workbook (use the RunAutoMacros(XlRunAutoMacro) method to run those macros).
Note: This method must be called before referencing the Workbook property.