Items Object
Outlook Developer Reference |
Contains a collection of Outlook item objects in a folder.
Remarks
Use the Items property to return the Items object of a Folder object.
Use Items(
index
), where
index
is the name or index number, to return a single Outlook item.
Note |
---|
The items in the Items collection object are not guaranteed to be in any particular order. |
Example
The following Microsoft Visual Basic for Applications (VBA) example returns the first item in the Inbox with the Subject "Need your advice."
Visual Basic for Applications |
---|
|
The following VBA example returns the first item in the Inbox. In Office Outlook 11 or later, the Items object returns the items in an Offline Folders file (.ost) in the reverse order.
Visual Basic for Applications |
---|
|
See Also
- Outlook Object Model Reference
- Items Object Members
- AppointmentItem Object
- ContactItem Object
- DocumentItem Object
- How to: Filter Items that Do Not Have Categories
- How to: Programatically Change the Display Format for All Contacts
- How-to: Enumerate the Contacts Folder and Set Custom Property for only Contact Items
- JournalItem Object
- MailItem Object
- MeetingItem Object
- NoteItem Object
- PostItem Object
- RemoteItem Object
- ReportItem Object
- TaskItem Object
- TaskRequestAcceptItem Object
- TaskRequestDeclineItem Object
- TaskRequestItem Object
- TaskRequestUpdateItem Object