create task item for self 
Author Message
 create task item for self

With the following code, I can assign a task to members of my staff, but
can't assign one to myself lest I receive the 'You cannot send a task
request to yourself.' error. Digging in the object model revealed the
TaskOwnership property of the TaskItem, but I can't seem to get the syntax
right. Any suggestions would be most appreciated; otherwise I'll have no
work to do myself! :)  TIA

~Shane
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim myOlApp As Outlook.Application

Set myOlApp = CreateObject("Outlook.Application")
Set myitem = myOlApp.CreateItem(olTaskItem)
myitem.Assign
Set myDelegate = myitem.Recipients.Add("any member of my staff")
myitem.Subject = "task subject"
myitem.DueDate = #date#
myitem.Send



Fri, 10 Jan 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to Create Task Item in Someone Else's Task Folder

2. Code to create a (self-imposed) task w/reminder

3. Creating New Task Item - VBScript

4. create an e-mail mailing from a folder containing tasks items

5. Error creating a new custom task item

6. Creating Task items

7. Create custom task items for another user

8. Activate Remeberfunction in created Task-Item

9. Changing from mail-item to task-item

10. Task Scheduler API self delete job

11. Creating Tasks in Task scheduler

12. How to create TASK SCHEDULER tasks

 

 
Powered by phpBB® Forum Software