AutoOLE Object

The AutoOLE object controls OLE settings.

Derived from: AutoShape object (All methods and properties of AutoShape apply to this object.)

Properties

There are no additional methods and properties for this object, see AutoShape.

Example

The following script demonstrates how the AutoOLE object is used.

Sub Main

 

'Declares GrapherApp as an object

  Dim GrapherApp As Object

 

'Creates an instance of the Grapher Application object

 'and assigns it to the variable named "GrapherApp"

  Set GrapherApp = CreateObject("Grapher.Application")

 

 'Makes Grapher visible

  GrapherApp.Visible = True

 

 'Creates a plot document in Grapher and assigns

 'it to the variable named "Plot"

  Set Plot = GrapherApp.Documents.Add(grfPlotDoc)

 

'Create an OLEObject and set it to OLEObject object

Set OLEObject = Plot.Shapes.AddOLEObject("WordPad.Document.1",,,False)

 

End Sub