If the pathname argument is omitted, GetObject returns a currently active object of the specified type. If pathname is a zero-length string (''), GetObject returns a new object instance of the specified type.
When this code is executed, the application associated with the specified pathname is started, and the object in the specified file is activated. Set CADObject = GetObject('C:\CAD\SCHEMA.CAD') Use the Set statement to assign the object returned by GetObject to the object variable. Use the GetObject function to access an ActiveX object from a file and assign the object to an object variable. The name of the application providing the object. The class argument uses the syntax appname. A string representing the class of the object. If pathname is omitted, class is required. The full path and name of the file containing the object to retrieve. The GetObject function syntax has these named arguments: Part Returns a reference to an object provided by an ActiveX component.