CreateObject Method

Applies To

Application object.

Description

Creates an Automation object of the specified class.

Note Use this method if you are automating Microsoft Outlook by using VBScript. Use the CreateObject function if you are automating Microsoft Outlook by using Visual Basic for Applications in another application.

Syntax

expression.CreateObject(ObjectName)

expression An expression that returns an Application object.

ObjectName Required String. The class name of the object to create.