Create a TaskItem : Outlook Task « Outlook « VBA / Excel / Access / Word






Create a TaskItem

 
Sub taskItem()
    Dim myTask As TaskItem
    Set myTask = Application.CreateItem(ItemType:=olTaskItem)
    With myTask
        .Subject = "plan"
        .Body = "body"
        .DueDate = Str(Date + 28)
    
        .Status = olTaskInProgress
        .PercentComplete = 10
        .Companies = "your company"
        .BillingInformation = "Sales & Marketing"
        .Importance = olImportanceHigh
        .Save
    End With
End Sub

 








Related examples in the same category

1.Creating a Task
2.Using the Save Method
3.Assigning a Task to a Colleague