Creating and sanding tasks from Access VBA

A

ACCESS 2003

Hi,
I am using Outlook 2003 with Exchange 2007 and I am trying to
programatically send tasks from access vba to another account.

thenks.
 
A

ACCESS 2003

Hi,
This is code to sand from my account,but I would like some code to sand from
account of manager (his tasks) to any another account.
Sub AssignTask()
Dim myOlApp As New Outlook.Application
Dim myItem As Outlook.TaskItem
Dim myDelegate As Outlook.Recipient
Set myItem = myOlApp.CreateItem(olTaskItem)
myItem.Assign
Set myDelegate = myItem.Recipients.Add("Gon Kim")
myDelegate.Resolve
If myDelegate.Resolved Then
myItem.Subject = "My SubJect"
myItem.DueDate = Now + 30
myItem.Display
myItem.Send
End If
End Sub

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top