Returns a running instance of an application object
(vlax-get-object prog-id)
Arguments
A string that identifies the desired application object. The format of prog-id is:
appname.objecttype
where appname is the name of the application and objecttype is the application object. The objecttype may be followed by a version number.
Return Values
nil, if there is no instance of the specified object currently running.
The application object; otherwiseExamples
Obtain the application object for the Excel program:
_$ (vlax-get-object "Excel.Application")
#<VLA-OBJECT _Application 0017bb5c>