Creating and sanding tasks from Access VBA

  • Thread starter Thread starter ACCESS 2003
  • Start date Start date
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.
 
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
 
Back
Top