read requested by property of task

M

Matthew Sickler

I'm attempting to create a macro that monitors Task Items added to the
default task folder, I would like an assigned tasked to be moved
automatically to a public folder. Is there a way to determine if a
task has been assigned? I can not find the property.

thanks,
Matt
 
M

Matthew Sickler

I guess my problem is that I'm confused how to determine this, I
haven't been able to fine the RequestedBy property regardless of
whether it was populated or not. I tried creating an outlook taskitem
variable, just to see what options the editor would give me, and
RequestedBy was not one of them. Here is my code for Outlook 2003

Dim myOlApp As New Outlook.Application
Public WithEvents myOlItems As Outlook.Items

Public Sub Initialize_handler()
Set myOlItems = myOlApp.GetNamespace("MAPI").GetDefaultFolder(olFolderTasks).Items
End Sub

Private Sub myOlItems_ItemAdd(ByVal Item As Object)

MsgBox (Item.RequestedBy)

End Sub


I would like to determine when a task has been accepted and move that
task to exchange instead of leaving it in my default task folder.

Thanks, Matt
 
Top