_Worksheet.OLEObjects Method

Returns an object that represents either a single OLE object (an OLEObject) or a collection of all OLE objects (an OLEObjects collection) on the chart or sheet. Read-only.

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

Syntax

'Declaration
Function OLEObjects ( _
    Index As Object _
) As Object
'Usage
Dim instance As _Worksheet
Dim Index As Object
Dim returnValue As Object

returnValue = instance.OLEObjects(Index)
Object OLEObjects(
    Object Index
)

Parameters

  • Index
    Type: System.Object

    Optional Object. The name or number of the OLE object.

Return Value

Type: System.Object

See Also

Reference

_Worksheet Interface

_Worksheet Members

Microsoft.Office.Interop.Excel Namespace