Class TaskItem (Outlook VBA)
The class TaskItem represents a task (an assigned, delegated, or self-imposed task to be performed within a specified time frame) in a Tasks folder.
The classes TaskRequestAcceptItem, TaskRequestDeclineItem, TaskRequestItem and TaskRequestUpdateItem. give access to class TaskItem
Dim tim as TaskItem
Set tim = Session.CreateSharingItem.Move.Items(Index:=1)
For Each
Here is an example of processing the TaskItem items in a collection.
Dim timItem As TaskItem
For Each timItem In Session.CreateSharingItem.Move.Items
Next timItem
Methods
Assign - Assigns a task and returns a TaskItem object that represents it.
CancelResponseState - Resets an unsent response to a task request back to a simple task.
ClearRecurrencePattern - Removes the recurrence settings and restores the single-occurrence state for an appointment or task.
Copy - Creates another instance of an object.
Delete - Removes the item from the folder that contains the item.
Display - Displays a new Inspector object for the item.
GetConversation - Obtains a Conversation object that represents the conversation to which this item belongs.
GetRecurrencePattern - Returns a RecurrencePattern object that represents the recurrence attributes of a task. If there is no existing recurrence pattern, a new empty RecurrencePattern object is returned.
MarkComplete - Marks the task as completed.
Move - Moves a Microsoft Outlook item to a new folder.
PrintOut - Prints the Outlook item using all default settings.The PrintOut method is the only Outlook method that can be used for printing.
Respond - Responds to a task request.
Save - Saves the Microsoft Outlook item to the current folder or, if this is a new item, to the Outlook default folder for the item type.
SaveAs - Saves the Microsoft Outlook item to the specified path and in the format of the specified file type. If the file type is not specified, the MSG format (.msg) is used.
ShowCategoriesDialog - Displays the Show Categories dialog box, which allows you to select categories that correspond to the subject of the item.
SkipRecurrence - Clears the current instance of a recurring task and sets the recurrence to the next instance of that task.
StatusReport - Sends a status report to all Cc recipients (recipients returned by the StatusUpdateRecipients property) with the current status for the task and returns an Object representing the status report.
Properties
Actions returns an Actions collection that represents all the available actions for the item.
ActualWork returns or sets a Long indicating the actual effort spent on the task.
Attachments returns an Attachments object that represents all the attachments for the specified item.
AutoResolvedWinner returns a Boolean that determines if the item is a winner of an automatic conflict resolution.
BillingInformation returns or sets a String representing the billing information associated with the Outlook item.
Body returns or sets a String representing the clear-text body of the Outlook item.
CardData returns or sets a String representing the text of the card data for the task.
Categories returns or sets a String representing the categories assigned to the Outlook item.
Class returns an OlObjectClass constant indicating the object's class.
Companies returns or sets a String representing the names of the companies associated with the Outlook item.
Complete returns a Boolean value that indicates whether the task is completed.
Conflicts return the Conflicts object that represents the items that are in conflict for any Outlook item object.
ContactNames returns or sets a String representing the contact names associated with the Outlook item.
ConversationID returns a String that uniquely identifies a Conversation object that the TaskItem object belongs to.
ConversationIndex returns a String that indicates the relative position of the item within the conversation thread.
ConversationTopic returns a String representing the topic of the conversation thread of the Outlook item.
CreationTime returns a Date indicating the creation time for the Outlook item.
DateCompleted returns or sets a Date indicating the completion date of the task.
DelegationState returns an OlTaskDelegationState constant indicating the delegation state of the task.
Delegator returns a String representing the display name of the delegator for the task.
DownloadState returns a constant that belongs to the OlDownloadState enumeration indicating the download state of the item.
DueDate returns or sets a Date indicating the due date for the task.
EntryID returns a String representing the unique Entry ID of the object.
FormDescription returns the FormDescription object that represents the form description for the specified Outlook item.
GetInspector returns an Inspector object that represents an inspector initialized to contain the specified item.
Importance returns or sets an OlImportance constant indicating the relative importance level for the Outlook item.
InternetCodepage returns or sets a Long that determines the Internet code page used by the item.
IsConflict returns a Boolean that determines if the item is in conflict.
IsRecurring returns a Boolean value that is True if the task is a recurring task.
ItemProperties returns an ItemProperties collection that represents all standard and user-defined properties associated with the Outlook item.
LastModificationTime returns a Date specifying the date and time that the Outlook item was last modified.
MarkForDownload returns or sets an OlRemoteStatus constant that determines the status of an item once it is received by a remote user.
MessageClass returns or sets a String representing the message class for the Outlook item.
Mileage returns or sets a String representing the mileage for an item.
NoAging returns or sets a Boolean value that is True to not age the Outlook item.
Ordinal returns or sets a Long specifying the position in the view (ordinal) for the task.
OutlookInternalVersion returns a Long representing the build number of the Outlook application for an Outlook item.
OutlookVersion returns a String indicating the major and minor version number of the Outlook application for an Outlook item.
Owner returns or sets a String indicating the owner for the task.
Ownership returns an OlTaskOwnership specifying the ownership state of the task.
PercentComplete returns or sets a Long indicating the percentage of the task completed at the current date and time.
PropertyAccessor returns a PropertyAccessor object that supports creating, getting, setting, and deleting properties of the parent TaskItem object.
Recipients returns a Recipients collection that represents all the recipients for the Outlook item.
ReminderOverrideDefault returns or sets a Boolean value that is True if the reminder overrides the default reminder behavior for the item.
ReminderPlaySound returns or sets a Boolean value that is True if the reminder should play a sound when it occurs for this item.
ReminderSet returns or sets a Boolean value that is True if a reminder has been set for this item.
ReminderSoundFile returns or sets a String indicating the path and file name of the sound file to play when the reminder occurs for the Outlook item.
ReminderTime returns or sets a Date indicating the date and time at which the reminder should occur for the specified item.
ResponseState returns an OlTaskResponse constant indicating the overall status of the response to the specified task request.
Role returns or sets a String containing the free-form text string associating the owner of a task with a role for the task.
RTFBody returns or sets a Byte array that represents the body of the Microsoft Outlook item in Rich Text Format. Read/write.
Saved returns a Boolean value that is True if the Outlook item has not been modified since the last save.
SchedulePlusPriority returns or sets a String representing the Microsoft Schedule+ priority for the task.
SendUsingAccount returns or sets an Account object that represents the account under which the TaskItem object is to be sent.
Sensitivity returns or sets a constant in the OlSensitivity enumeration indicating the sensitivity for the Outlook item.
Session returns the NameSpace object for the current session.
Size returns a Long indicating the size (in bytes) of the Outlook item.
StartDate returns or sets a Date indicating the start date for the task.
Status returns or sets an OlTaskStatus constant specifying the status for the task. Corresponds to the Status field of a TaskItem.
StatusOnCompletionRecipients returns or sets a semicolon-delimited String of display names for recipients who will receive status upon completion of the task.
StatusUpdateRecipients returns a semicolon-delimited String of display names for recipients who receive status updates for the task.
Subject returns or sets a String indicating the subject for the Outlook item.
TeamTask returns a Boolean that indicates True if the task is a team task.
ToDoTaskOrdinal returns or sets a Date value that represents the ordinal value of the task for the TaskItem.
TotalWork returns or sets a Long indicating the total work for the task.
UnRead returns or sets a Boolean value that is True if the Outlook item has not been opened (read).
UserProperties returns the UserProperties collection that represents all the user properties for the Outlook item.
Related Classes
Account - The Account object represents an account that is defined for the current profile.
Actions - Contains a collection of Action objects that represent all the specialized actions that can be executed on an Outlook item.
Attachments - Contains a set of Attachment objects that represent the attachments in an Outlook item.
Conflicts - Contains a collection of Conflict objects that represent all Microsoft Outlook items that are in conflict with a particular Outlook item.
Conversation - Represents a conversation that includes one or more items stored in one or more folders and stores.
Folder - Represents an Outlook folder.
FormDescription - Represents the general properties of an Outlook form.
Inspector - Represents the window in which an Outlook item is displayed.
ItemProperties - A collection of all properties associated with the item.
NameSpace - Represents an abstract root object for any data source.
PropertyAccessor - Provides the ability to create, get, set, and delete properties on objects.
Recipients - Contains a collection of Recipient objects for an Outlook item.
RecurrencePattern - Represents the pattern of incidence of recurring appointments and tasks for the associated AppointmentItem and TaskItem object.
UserProperties - Contains UserProperty objects that represent the custom properties of an Outlook item.