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.
Syntax
expression.OLEObjects(Index)
expression A variable that represents a Worksheet object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Index | Optional | Variant | The name or number of the OLE object. |
Return Value
Object
Example
This example creates a list of link types for OLE objects on Sheet1. The list appears on a new worksheet created by the example.
| Visual Basic for Applications |
|---|
|