Items.ItemAdd Event
Outlook Developer Reference |
Occurs when one or more items are added to the specified collection. This event does not run when a large number of items are added to the folder at once. This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).
Syntax
expression.ItemAdd(Item)
expression A variable that represents an Items object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Item | Required | Object | The item that was added. |
Example
In this Visual Basic for Applications (VBA) example, when a new contact is added to the Contacts folder, the contact item is attached to an e-mail message and sent to a distribution list named "Sales Team". The sample code must be placed in a class module, and the Initialize_handler
routine must be called before the event procedure can be called by Microsoft Outlook.
Visual Basic for Applications |
---|
|
See Also