Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create and Mark Complete Outlook Task in Shared Folder

Status
Not open for further replies.

dallen127

Technical User
Jul 7, 2015
1
US
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:
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!
 
Forum707



Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top