Recipient.Type Property
Outlook Developer Reference |
Returns or sets a Long representing the type of recipient. Read/write.
Syntax
expression.Type
expression A variable that represents a Recipient object.
Remarks
Depending on the type of recipient, this property returns or sets a Long corresponding to the numeric equivalent of one of the following constants:
- JournalItem recipient: the OlJournalRecipientType constant olAssociatedContact.
- MailItem recipient: one of the following OlMailRecipientType constants: olBCC, olCC, olOriginator, or olTo.
- MeetingItem recipient: one of the following OlMeetingRecipientType constants: olOptional, olOrganizer, olRequired, or olResource.
- TaskItem recipient: either of the following OlTaskRecipientType constants: olFinalStatus, or olUpdate.
Example
This Visual Basic for Applications (VBA) example uses CreateItem to create an appointment and uses MeetingStatus to set the meeting status to "Meeting" to turn it into a meeting request with both a required and an optional attendee. The recipient names should be replaced with valid names to avoid errors.
Visual Basic for Applications |
---|
|
See Also