COM API

ApplicationEx object

When using the built-in VBA execution environment, it is possible to access the COM Application object as a global variable. The variable name is ApplicationEx inside the VBA execution environment.

Example

   MsgBox "Status is: " & CStr(ApplicationEx.CurrentInvoice.Status)

Note

Inside the VBA execution environment, the global variable Application provides access to the OLE Application object. Thus, the following code gives the same result:

   MsgBox "User is: " & Application.GetUserName()

   MsgBox "User is: " & ApplicationEx.GetClassicObject().GetUserName()