Declaring an Object Variable
To declare an object variable, you use the As clause and specify a class in the typeName argument. An object variable can reference an object. It can use dot notation to access members and methods of this object. For example:
Dim COMObject As Object
Set COMObject = CreateObject("spoly.cpoly")
COMObject.reset
You can declare an object as New for some classes. For example:
Dim variableName As New className
variableName.methodName
A Set statement is not required in this situation. Siebel VB allocates a new object when it uses this variable.
You cannot use the New operator with the Basic Object class.