View Single Post
  #4  
Old July 28th 09, 06:28 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Creating a Task with VBScript

Do you save the item again after adding to the Links collection?

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


"yannickestrada" wrote in message
...
Sorry Sue, that was ocurring when I run the code in a VBA project.

My code looks like this:

Set myTask= Application.CreateItem(3)
myTask.Subject = "Subject"
myTask.DueDate = #17/09/2009#
myTask.Save

Item.Save

Set colLinks = myTask.Links
Set oLinks = colLinks.Add(Item)

Now the Add function isn“t the problem. I checked the colLinks count and
the
add is happening, but I never see the task in the Activities tab.

Thanks.


Ads