Compartir a través de


_OLEObject Interface

Represents an ActiveX control or a linked or embedded OLE object on a worksheet. The OLEObject object is a member of the OLEObjects collection. The OLEObjects collection contains all the OLE objects on a single worksheet.

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

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("000208A2-0000-0000-C000-000000000046")> _
Public Interface _OLEObject
'Usage
Dim instance As _OLEObject
[InterfaceTypeAttribute()]
[GuidAttribute("000208A2-0000-0000-C000-000000000046")]
public interface _OLEObject

Remarks

Use OLEObjects(index), where index is the name or number of the object, to return an OLEObject object.

The properties and methods of the OLEObject object are duplicated on each ActiveX control on a worksheet. This enables access to these properties by using the control’s name.

See Also

Reference

_OLEObject Members

Microsoft.Office.Interop.Excel Namespace