AddOLEObject Method

The AddOLEObject method adds an OLE object to a plot. Returns an OLE object.

Syntax

object.AddOLEObject( classType, filename, link, displayAsIcon )

 

Parameter Type Description
classType Variant optional, name of OLE object, e.g., "Excel.Workspace"
filename Variant optional, name of file to be inserted as an OLE object
link Variant optional, use True to link object to file
displayAsIcon Variant optional, use True to display OLE object as icon in document

 

Example

This example shows how to open a Microsoft Excel worksheet as an OLE object.

Plot.Shapes.AddOLEObject("")

 

Used by: AutoShapes collection