Share via


OLEObject Object Members

Excel Developer Reference

Represents an ActiveX control or a linked or embedded OLE object on a worksheet.

Methods

  Name Description
Bb242385.methods(en-us,office.12).gif Activate Activates the object.
Bb242385.methods(en-us,office.12).gif BringToFront Brings the object to the front of the z-order.
Bb242385.methods(en-us,office.12).gif Copy Copies the object to the Clipboard.
Bb242385.methods(en-us,office.12).gif CopyPicture Copies the selected object to the Clipboard as a picture. Variant.
Bb242385.methods(en-us,office.12).gif Cut Cuts the object to the Clipboard or pastes it into a specified destination.
Bb242385.methods(en-us,office.12).gif Delete Deletes the object.
Bb242385.methods(en-us,office.12).gif Duplicate Duplicates the object and returns a reference to the new copy.
Bb242385.methods(en-us,office.12).gif Select Selects the object.
Bb242385.methods(en-us,office.12).gif SendToBack Sends the object to the back of the z-order.
Bb242385.methods(en-us,office.12).gif Update Updates the link.
Bb242385.methods(en-us,office.12).gif Verb Sends a verb to the server of the specified OLE object.

Properties

  Name Description
Bb242385.properties(en-us,office.12).gif Application When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, 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.
Bb242385.properties(en-us,office.12).gif AutoLoad True if the OLE object is automatically loaded when the workbook that contains it is opened. Read/write Boolean.
Bb242385.properties(en-us,office.12).gif 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.
Bb242385.properties(en-us,office.12).gif Border Returns a Border object that represents the border of the object.
Bb242385.properties(en-us,office.12).gif BottomRightCell Returns a Range object that represents the cell that lies under the lower-right corner of the object. Read-only.
Bb242385.properties(en-us,office.12).gif Enabled True if the object is enabled. Read/write Boolean.
Bb242385.properties(en-us,office.12).gif Height Returns or sets a Double value that represents the height, in points, of the object.
Bb242385.properties(en-us,office.12).gif Index Returns a Long value that represents the index number of the object within the collection of similar objects.
Bb242385.properties(en-us,office.12).gif Interior Returns an Interior object that represents the interior of the specified object.
Bb242385.properties(en-us,office.12).gif Left Returns or sets a Double value that represents 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).
Bb242385.properties(en-us,office.12).gif 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.
Bb242385.properties(en-us,office.12).gif 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.
Bb242385.properties(en-us,office.12).gif Locked Returns or sets a Boolean value that indicates if the object is locked.
Bb242385.properties(en-us,office.12).gif Name Returns or sets a String value representing the name of the object.
Bb242385.properties(en-us,office.12).gif Object Returns the OLE Automation object associated with this OLE object. Read-only Object.
Bb242385.properties(en-us,office.12).gif OLEType 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 Long.
Bb242385.properties(en-us,office.12).gif Parent Returns the parent object for the specified object. Read-only.
Bb242385.properties(en-us,office.12).gif Placement Returns or sets a Variant value, containing an XlPlacement constant, that represents the way the object is attached to the cells below it.
Bb242385.properties(en-us,office.12).gif PrintObject True if the object will be printed when the document is printed. Read/write Boolean.
Bb242385.properties(en-us,office.12).gif progID Returns the programmatic identifiers for the object. Read-only String.
Bb242385.properties(en-us,office.12).gif Shadow Returns or sets a Boolean value that determines if the object has a shadow.
Bb242385.properties(en-us,office.12).gif ShapeRange Returns a ShapeRange object that represents the specified object or objects. Read-only.
Bb242385.properties(en-us,office.12).gif SourceName Returns or sets a String value that represents the specified object's link source name.
Bb242385.properties(en-us,office.12).gif Top Returns or sets a Double value that represents 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).
Bb242385.properties(en-us,office.12).gif TopLeftCell Returns a Range object that represents the cell that lies under the upper-left corner of the specified object. Read-only.
Bb242385.properties(en-us,office.12).gif Visible Returns or sets a Boolean value that determines whether the object is visible. Read/write.
Bb242385.properties(en-us,office.12).gif Width Returns or sets a Double value that represents the width, in points, of the object.
Bb242385.properties(en-us,office.12).gif ZOrder Returns the z-order position of the object. Read-only Long.

Events

  Name Description
Bb242385.events(en-us,office.12).gif GotFocus Occurs when an ActiveX control gets input focus.
Bb242385.events(en-us,office.12).gif LostFocus Occurs when an ActiveX control loses input focus.