#### Accessing an OLE Object’s Automation Methods and Properties from Basic

If you have added an OLE control, for example the Bitmap control, and called it BITMAP, you may wish to access the OLE object’s automation methods and properties from BASIC. For example, you might wish to add program code to change the bitmap being displayed, populate an embedded Microsoft Excel spreadsheet object with data, or set the text in an embedded Microsoft Word document. In order to access the OLE automation methods and properties for the object named “BITMAP”, use the following code:

AttachOLE("BITMAP_X")

The object variable BITMAP_X may now be used as follows:

BITMAP_X.{property} = {value}

or

BITMAP_X.{automation method call}.

Note: You must have documentation for the particular OLE object you are using to know what methods and properties are available.