Creates an Automation object of the specified class. If the application is already running, CreateObject will create a new instance.
This method is provided so that other applications can be automated from VBScript. It should not be used to automate Outlook from VBScript.
Note The CreateObject methods commonly used in the example code within this Help file (available when you click "Example") are made available by Microsoft Visual Basic (VB) or Microsoft Visual Basic for Applications. These examples do not use the same CreateObject method that is implemented as part of Outlook's object model.
Syntax
objApplication.CreateObject(ObjectName)
objApplication Required. An expression that returns an Application object.
ObjectName Required String. The class name of the object to create. For information about valid class names, see OLE Programmatic Identifiers.