WorkbookBase.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 workbook.

protected virtual object GetAutomationObject ();

Returns

Object

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

Implements

Remarks

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

Applies to