OLEObject.Constructor(ProgramID as String, NewInstance as Boolean)
From Xojo Documentation
| This method is only available on the Windows platform.
For cross-platform compatibility, use ＃If...＃Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform.
Creates a new OLEObject using the passed ProgramID is the COM server’s program ID as stored in the registry. The NewInstance parameter specifies whether to create a new instance of the COM server (True) or try to use an existing one if it is running (False).
The following example automates Internet Explorer.