Represents a task (an assigned, delegated, or self-imposed task to be performed within a specified time frame) in a Tasks folder.
Using The TaskItem Object
Use the CreateItem method to create a TaskItem object that represents a new task.
The following Visual Basic for Applications example returns a new task.
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olTaskItem)
The following sample shows how to create a task using VBScript.
Set myItem = Application.CreateItem(3)
Use Items(index), where index is the index number of a task or a value used to match the default property of a task, to return a single TaskItem object from a Tasks folder.