LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Assigning Tasks to another User does not seem to work

Hi,

I have created a basic routine that will create a Task item and then send it
another user for acceptance. The code executes and sends the Task to the user
but when it arrives the user cannot select the task and it does not populate
into their Tasks within outlook. ....see below for the sample code that I am
using

Sub TestAssignTask()
'Can't seem to create a task that is sent to another user that can be edited
'By the assigned user
'Can send the Task but when it arrives it does not populate into the outlook
Task items or open when double clicked


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 = ")
myDelegate.Resolve

If myDelegate.Resolved Then
myItem.Subject = "Test Subject into your Task list"
myItem.DueDate = Now + 30
myItem.Status = olTaskNotStarted
myItem.Categories = "Tester"
myItem.Body = "Test Body"
myItem.Importance = olImportanceHigh
myItem.Display
myItem.Send
End If

End Sub

Any help appreciated....
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating tasks using a six day work week Steve22055 Excel Discussion (Misc queries) 1 March 25th 09 05:00 PM
Program for assigning work shift hours frankiee Excel Discussion (Misc queries) 1 March 10th 06 02:54 AM
Creating New work sheets and assigning names automatically paz24 Excel Programming 1 February 1st 06 12:44 PM
Dictionary object: Error assigning user defined data type to item Paul Urbanus Excel Programming 2 December 1st 05 04:21 AM
Assigning User Names depuyus[_8_] Excel Programming 3 August 10th 04 08:38 AM


All times are GMT +1. The time now is 07:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"