Using the Save Method : Outlook Task « Outlook « VBA / Excel / Access / Word






Using the Save Method

 
'Creates a new task; assigns it a subject, start date, and due date; turns off the reminder for the task; and then saves it:
Sub taskItem()
    Dim myTask As TaskItem
    Set myTask = Application.CreateItem(ItemType:=olTaskItem)
    With myTask
        .Subject = "Arrange Review Meeting"
        .StartDate = Date
        .DueDate = Date + 7
        .ReminderSet = False
        .Save
    End With
End Sub

 








Related examples in the same category

1.Creating a Task
2.Create a TaskItem
3.Assigning a Task to a Colleague