View Single Post
  #2  
Old December 15th 08, 08:55 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Changes in Tasks



You can use the GetItemFromTemplate function to load the files.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 15 Dec 2008 16:10:36 +0100 schrieb Markus Zbinden:

Hello,

I would like to replace text in the body of tasks. If the tasks are in an
outlook folder, i know how to do it:

Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderTasks)
Set olTaskItem = myFolder.Items

For i = olTaskItem.Count To 1 Step -1
...
Next

But the tasks are saved in a directory (\\server\test\) as *.msg-Files...
i don't see the solution.

Thanks, Markus

Ads