Application
Overview
The Application
property of the Accounts
class provides a reference to the parent application object that contains the accounts.
Syntax
Return Value
When accessed, the Application
property returns an Application
object that represents the parent application of the account collection.
Example
In this code snippet, the application object is retrieved using the Application
property of the Accounts
class. The name of the application (assuming the Application
object has a Name
property) is then displayed.
vba
Sub DisplayApplicationInfo(accounts As Accounts)
' Get the parent application object
Dim app As Application
Set app = accounts.Application
' Display a message box with the name of the application
MsgBox "The application managing these accounts is: " & app.Name, vbInformation
End Sub