Application.ItemLoad event (Outlook)
Occurs when an Outlook item is loaded into memory.
Syntax
expression. ItemLoad( Item )
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Item | Required | Object | A weak object reference for the loaded Outlook item. |
Remarks
This event occurs when the Outlook item begins to load into memory. Data for the item is not yet available, other than the values for the Class and MessageClass properties of the Outlook item, so an error occurs when calling any property other than Class or MessageClass for the Outlook item returned in Item.
Similarly, an error occurs if you attempt to call any method from the Outlook item, or if you call the GetObjectReference method of the Application object on the Outlook item returned in Item.
The ItemLoad event should typically be implemented as a means to hook up item-level event handlers such as BeforeRead, Open, Send, and Write.
Warning
The Item object passed in this event should not be cached for any use outside the scope of this event.
This event is not raised when the following conditions occur:
An Outlook item is synchronized with a folder.
A server-side rule is triggered for an Outlook item.
A reminder is triggered for an Outlook item.
A Desktop Alert is displayed for an Outlook item.
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.