GetObject

concerns

The GetObject function returns an object reference to an existing COM object.

 

Syntax

GetObject([PathName][, Class])

Return value

Type

Description

Variant

The determined COM object

Parameter

Use

Name

Type

Passing

Description

Optional

PathName

String

ByVal

The full path and name of the file that contains the object to retrieve. If PathName is omitted, Class is required.

Optional

Class

String

ByVal

Required if PathName is not specified.

In this case class must contain the ProgID of the COM class of the object to be queried.