Редагувати

Поділитися через


Stores.StoreAdd event (Outlook)

Occurs when a Store has been added to the current session either programmatically or through user action.

Syntax

expression. StoreAdd( _Store_ )

expression A variable that represents a Stores object.

Parameters

Name Required/Optional Data type Description
Store Required Store The Store to be added to the current session.

Remarks

Outlook must be running in order for this event to fire. This event will fire when any of the following occur:

  • A store is added through the Open Outlook Data File dialog box, by selecting Open and then Outlook Data File on the File menu.

  • A store is added through the Data Files tab of the Account Manager dialog box.

  • A store is added successfully by calling the Namespace.AddStore method.

This event will not fire when any of the following occurs:

  • When Outlook starts and opens a primary or delegate store.

  • If a store is added through the Mail applet in the Microsoft Windows Control Panel and Outlook is not running.

  • A delegate store is added through the Advanced tab of the Microsoft Exchange Server dialog box.

Use this event to determine whether a store has been added and take appropriate actions on items in that store. Otherwise, you would have to resort to polling the Stores collection.

See also

Stores Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.