Share via


Factory.HasVstoObject Method (_Workbook)

Returns a value that indicates whether a Microsoft.Office.Tools.Excel.Workbook host item exists for the specified Excel workbook object.

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

Syntax

'Declaration
Function HasVstoObject ( _
    workbook As _Workbook _
) As Boolean
bool HasVstoObject(
    _Workbook workbook
)

Parameters

Return Value

Type: System.Boolean
true if a Microsoft.Office.Tools.Excel.Workbook host item exists for the specified Microsoft.Office.Interop.Excel.Workbook object; otherwise, false.

Remarks

In a document-level customization, this method returns true only if the native workbook object is the underlying object of a Microsoft.Office.Tools.Excel.Workbook object in the current customization. Otherwise, this method returns false. For more information, see Getting Extended Objects from Native Office Objects in Document-Level Customizations.

.NET Framework Security

See Also

Reference

Factory Interface

HasVstoObject Overload

Microsoft.Office.Tools.Excel Namespace