DocumentBase.GetAutomationObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the document.
protected virtual object GetAutomationObject ();
Returns
An object in a document-level customization that can be used by VBA code in the document.
Implements
Remarks
Override this method to return an instance of a class that you have exposed to VBA code in the document. For more information, see Combining VBA and Document-Level Customizations.