Document.GetAutomationObject Method (2007 System)
Visual Studio 2008
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)
Return Value
Type: System.ObjectAn 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 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.