Class Account (Outlook VBA)

The Account object represents an account that is defined for the current profile.

The classes AccountRuleCondition, AccountSelector, AppointmentItem, MailItem, MeetingItem, SharingItem and TaskItem. give access to class Account


Dim acc as Account
Set acc = Session.Accounts(Index:=1)

For Each

Here is an example of processing the Account items in a collection.


Dim acc As Account
For Each acc In Session.Accounts
	
Next acc

Methods

GetAddressEntryFromID - Returns an AddressEntry object that represents the address entry specified by the given entry ID.

GetRecipientFromID - Returns the Recipient object that is identified by the given entry ID.

Properties

AccountType returns a constant in the OlAccountType enumeration that indicates the type of the Account.

AutoDiscoverConnectionMode returns an OlAutoDiscoverConnectionMode constant that specifies the type of connection to use for the auto-discovery service of the Microsoft Exchange server that hosts the account mailbox.

AutoDiscoverXml returns a String that represents information in XML retrieved from the auto-discovery service of the Microsoft Exchange Server that is associated with the account.

Class returns an OlObjectClass constant indicating the object's class.

CurrentUser returns a Recipient object that represents the current user identity for the account.

DeliveryStore returns a Store object that represents the default delivery store for the account.

DisplayName returns a String representing the display name of the email Account.

ExchangeConnectionMode returns an OlExchangeConnectionMode constant that indicates the current connection mode for the Microsoft Exchange Server that hosts the account mailbox. Read-only

ExchangeMailboxServerName returns a String value that represents the name of the Microsoft Exchange Server that hosts the account mailbox.

ExchangeMailboxServerVersion returns a String value that represents the full version number of the Microsoft Exchange Server that hosts the account mailbox.

Session returns the NameSpace object for the current session.

SmtpAddress returns a String representing the Simple Mail Transfer Protocol (SMTP) address for the Account.

UserName returns a String representing the user name for the Account.

AddressEntry - Represents a person, group, or public folder to which the messaging system can deliver messages.

NameSpace - Represents an abstract root object for any data source.

Recipient - Represents a user or resource in Outlook, generally a mail or mobile message addressee.

Store - Represents a file on the local computer or a network drive that stores email messages and other items for an account in the current profile.