Share via


WorkbookBase.GetAutomationObject Method

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

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

Syntax

'Declaration
Protected Overridable Function GetAutomationObject As Object
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 workbook.

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.

.NET Framework Security

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace