Expand Minimize

DocumentBase.GetAutomationObject Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

protected virtual Object GetAutomationObject()

Return Value

Type: System.Object
An object in a document-level customization that can be used by VBA code in the document.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft