StartDownloadsServiceSamplesWorkshopsContact DeutschEnglish
 
Samples
General
Outlook®
 
Awarded by
Microsoft since 2005:
mvp logo
VBOffice Info
Visitors1795842
Impressions6729778
Links
Imprint
Privacy Policy
Contact
Task: Change the priority
Author: Michael BauerHomepage
Date: 15.01.2008Accessed: 19306
  
Description

This sample demonstrates how to change the priority at once for all the selected tasks e.g. to 'High'. Of course, you can easily adapt the code to change other properties as well.

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

    If Selection.Count > 0 Then
      For i = 1 To Selection.Count
        Set Task = Selection(i)
        Task.Importance = olImportanceHigh
        Task.Save
      Next
    End If
  End If
End Sub
 
 

ReplyAll alerts you before unintentionally replying all, or if you are a confidential BCC recipient of the ... [more]

 

Access the master category list in the blink of an eye, share your categories in a network, get a reminder service, and ... [more]

 

SAM automatically sets the sender, signature, and folder for sent items, for instance based on the recipient ... [more]

 

OLKeeper reliably prevents users from closing their Outlook window and thus possibly missing reminders or ... [more]