_OLEObject _OLEObject _OLEObject Interface


This is a primary interface in a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this primary interface only when the method you want to use shares the same name as an event of the COM object; in this case, cast to this interface to call the method, and cast to the latest events interface to connect to the event. Otherwise, use the .NET interface that is derived from the COM coclass to access methods, properties, and events of the COM object. For more information about the COM object, see OLEObject.

public interface class _OLEObject
public interface _OLEObject
Public Interface _OLEObject



Reserved for internal use.

Application Application Application

This property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

AutoLoad AutoLoad AutoLoad

True if the OLE object is automatically loaded when the workbook that contains it is opened. Read/write Boolean.

AutoUpdate AutoUpdate AutoUpdate

True if the OLE object is updated automatically when the source changes. Valid only if the object is linked (its OLEType property must be xlOLELink). Read-only Boolean.

Border Border Border

Returns a Border object that represents the border of the object.

BottomRightCell BottomRightCell BottomRightCell

Returns a Range object that represents the cell that lies under the lower-right corner of the object. Read-only.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which this object was created. If the object was created in Microsoft Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. Read-only xlCreatorCode.

Enabled Enabled Enabled

True if the object is enabled. Read/write Boolean.

Height Height Height

The height, in points, of the object. Read/write Double.

Index Index Index

Returns the index number of the object within the collection of similar objects. Read-only Integer.

Interior Interior Interior

Returns an Interior object that represents the interior of the specified object.

Left Left Left

The distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart). Read/write Double.

LinkedCell LinkedCell LinkedCell

Returns or sets the worksheet range linked to the control's value. If you place a value in the cell, the control takes this value. Likewise, if you change the value of the control, that value is also placed in the cell. Read/write String.

ListFillRange ListFillRange ListFillRange

Returns or sets the worksheet range used to fill the specified list box. Setting this property destroys any existing list in the list box. Read/write String.

Locked Locked Locked

True if the object is locked, False if the object can be modified when the sheet is protected. Read/write Boolean.

Name Name Name

Returns or sets the name of the object. Read/write String.

Object Object Object

Returns the OLE Automation object associated with this OLE object. Read-only Object.


Returns the OLE object type. Can be one of the following XlOLEType constants: xlOLELink or xlOLEEmbed. Returns xlOLELink if the object is linked (it exists outside of the file) or returns xlOLEEmbed if the object is embedded (it's entirely contained within the file). Read-only Object.

OnAction OnAction OnAction

Returns or sets the name of a macro that’s run when the specified object is clicked. Read/write String.

Parent Parent Parent

Returns the parent object for the specified object. Read-only.

Placement Placement Placement

Returns or sets the way the object is attached to the cells below it. Read/write Object.

PrintObject PrintObject PrintObject

True if the object will be printed when the document is printed. Read/write Boolean.

progID progID progID

Returns the programmatic identifiers for the object. Read-only String.

Shadow Shadow Shadow

True if the font is a shadow font or if the object has a shadow. Read/write Boolean.

ShapeRange ShapeRange ShapeRange

Returns a ShapeRange object that represents the specified object or objects. Read-only.

SourceName SourceName SourceName

Returns or sets the specified object's link source name. Read/write String.

Top Top Top

The distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart). Read/write Double.

TopLeftCell TopLeftCell TopLeftCell

Returns a Range object that represents the cell that lies under the upper-left corner of the specified object. Read-only.

Visible Visible Visible

Determines whether the object is visible. Read/write Boolean.

Width Width Width

The width, in points, of the object. Read/write Double.

ZOrder ZOrder ZOrder

Returns the z-order position of the object. Read-only Integer.


Activate() Activate() Activate()

Activates the object.

BringToFront() BringToFront() BringToFront()

Brings the object to the front of the z-order.

Copy() Copy() Copy()

Copies the object to the Clipboard.

CopyPicture(XlPictureAppearance, XlCopyPictureFormat) CopyPicture(XlPictureAppearance, XlCopyPictureFormat) CopyPicture(XlPictureAppearance, XlCopyPictureFormat)

Copies the selected object to the Clipboard as a picture. Object.

Cut() Cut() Cut()

Cuts the object to the Clipboard or pastes it into a specified destination.

Delete() Delete() Delete()

Deletes the object.

Duplicate() Duplicate() Duplicate()

Duplicates the object and returns a reference to the new copy.

Select(Object) Select(Object) Select(Object)

Selects the object.

SendToBack() SendToBack() SendToBack()

Sends the object to the back of the z-order.

Update() Update() Update()

Updates the link.

Verb(XlOLEVerb) Verb(XlOLEVerb) Verb(XlOLEVerb)

Sends a verb to the server of the specified OLE object.

Applies to