Document.GetAutomationObject Method (2007 System)
Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the document.
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Override this method to return an instance of a class that you have exposed to VBA code in the document. For more information, see Calling Code in Document-Level Customizations from VBA.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.