You can use CreateObject to create a new instance of an Automation application. For example, you can use CreateObject to start Reflection 2011 if it isn't currently running.
CreateObject takes one argument of the form AppName.ObjectType. AppName is the name of the application and ObjectType is the type of object to create.
This example shows how to create an application object for Reflection 2011.
Note: This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Attachmate provides this sample code "AS IS" with no warranties.
For the argument AppName.ObjectType, it uses the following:
"Attachmate_Reflection_Objects_Framework.ApplicationObject"
For example:
Dim ApplicationObject As Object
Set ApplicationObject=CreateObject("Attachmate_Reflection_Objects_Framework.ApplicationObject")