Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11100
| Newsgroups | microsoft.public.scripting.vbscript |
|---|---|
| Date | 2015-07-07 09:19 -0700 |
| Message-ID | <ff0f5440-76cc-4603-92d0-8dd047945f5f@googlegroups.com> (permalink) |
| Subject | Create and Mark Complete Outlook Task in Shared Folder |
| From | gadgethome1@gmail.com |
I have two VBScripts--one 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:
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:
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!
Back to microsoft.public.scripting.vbscript | Previous | Next | Find similar
Create and Mark Complete Outlook Task in Shared Folder gadgethome1@gmail.com - 2015-07-07 09:19 -0700
csiph-web