Bulk Edit the Priority for Multiple Task Items

In this sample we change the priority for multiple task items at once.

Last modified: 2008/01/15 | Accessed: 45.640  | #62
◀ Previous sample Next sample ▶
Determine the "identity" of your emails. Set with SAM the sender and the folder folder for sent items with the help of rules.

This sample demonstrates how to change the priority for all the selected tasks in one go to 'High'.

tip  How to add macros to Outlook
Public Sub ChangeTaskPriority()
  Dim Task As Outlook.TaskItem
  Dim Selection As Outlook.Selection
  Dim Folder As Outlook.MAPIFolder
  Dim i&

  Set Folder = ActiveExplorer.CurrentFolder
  If Folder.DefaultItemType = olTaskItem Then
    Set Selection = ActiveExplorer.Selection
    For i = 1 To Selection.Count
      Set Task = Selection(i)
      Task.Importance = olImportanceHigh
  End If
End Sub
OLKeeper OLKeeper
OLKeeper reliably prevents users from closing their Outlook window and thus possibly missing reminders or e-mails.
email  Send a message