Sub AddToCalendar() Dim olApp As Outlook.Application Dim olTsk As TaskItem Set olApp = New Outlook.Application Set olTsk = olApp.CreateItem(olTaskItem) With olTsk .Subject = myEmailFolder & " Newsletter is Due" .Status = olTaskInProgress .Importance = olImportanceHigh .DueDate = Date + 3 .Save End With Set olTsk = Nothing Set olApp = Nothing End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)