I have a script that creates an Outlook task and another that marks a task completed. They work well in the root "Tasks" folder. But for the life of me, I cannot find documentation that adequately addresses using a shared folder.
How can these two scripts access a shared Outlook task folder?
Create task:
Mark task completed:
Any help will be appreciated!
How can these two scripts access a shared Outlook task folder?
Create task:
Code:
With CreateObject("Outlook.Application").CreateItem(3)
.Subject = "Test Task From Macro"
.StartDate = "06/24/2015"
.DueDate = .StartDate + 3
.Body = "This is a Task Body"
.Save
End With
Mark task completed:
Code:
v00 = "Test Task From Macro"
v01 = "06/25/2015"
v02 = v00 & "-COMPLETE- " & v01
With CreateObject("Outlook.Application").GetNamespace("MAPI").GetDefaultFolder(13).Items(v00)
.subject = v02
.DateCompleted = v01
.Save
End With
Any help will be appreciated!