A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Changes in Tasks



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 15th 08, 03:10 PM posted to microsoft.public.outlook.program_vba
Markus Zbinden
external usenet poster
 
Posts: 2
Default Changes in Tasks

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
  #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

  #3  
Old December 16th 08, 07:58 AM posted to microsoft.public.outlook.program_vba
Markus Zbinden
external usenet poster
 
Posts: 2
Default Changes in Tasks

Thanks for your answer.
I can't find the method GetItemFromTemplate in the library. Is it possible
for you to make a little example? By the way: i work with ol2003.
Thank you!
Markus

Am 15.12.2008, 21:55 Uhr, schrieb Michael Bauer [MVP - Outlook]
:



You can use the GetItemFromTemplate function to load the files.


  #4  
Old December 16th 08, 02:08 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Changes in Tasks

Michael made a typo, it should be CreateItemFromTemplate().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Markus Zbinden" wrote in message
news
Thanks for your answer.
I can't find the method GetItemFromTemplate in the library. Is it possible
for you to make a little example? By the way: i work with ol2003.
Thank you!
Markus


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to view past due tasks in the tasks pane below mycalendar Day view? [email protected] Outlook - Calandaring 4 September 29th 08 08:28 AM
Tasks Leon[_2_] Outlook - Using Forms 7 August 2nd 07 12:21 PM
is it possible to link tasks in the tasks with the calendar? tasky mary Outlook - Calandaring 3 March 12th 07 11:06 PM
Printing calendar and active tasks - do not want all tasks rrupp Outlook - Calandaring 1 August 18th 06 08:36 AM
Tasks - User Defined Columns to Pocket PC Tasks??? Lovebaby Outlook - General Queries 1 July 23rd 06 08:14 PM


All times are GMT +1. The time now is 10:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.