Partager via


WorksheetBase.GetAutomationObject Method

Definition

Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the worksheet.

protected:
 virtual System::Object ^ GetAutomationObject();
protected virtual object GetAutomationObject ();
abstract member GetAutomationObject : unit -> obj
override this.GetAutomationObject : unit -> obj
Protected Overridable Function GetAutomationObject () As Object

Returns

An object in a document-level customization that can be used by VBA code in the worksheet.

Remarks

Override this method to return an instance of a class that you have exposed to VBA code in the worksheet. For more information, see Combining VBA and Document-Level Customizations.

Applies to