GarthMartin
New Member
- Outlook version
- Outlook 2010 32 bit
- Email Account
- Exchange Server
Hi all:
I have created a custom form in Outlook 2010 using the same principles as detailed in this post on MS:
http://support.microsoft.com/kb/239087.
Basically the form has a Item_PropertyChanged event to create a template email message when the status changes to Completed.
For some reason when I create the task from the published form, before I save the new task the code works, but when I save the task and then change the status, nothing happens.
Any thoughts on this?
Here is the function:
Sub Item_PropertyChange(ByVal Name)
Select Case Name
Case "Status"
if Item.Status = 2 then '2 = Completed
Set NewItem = Application.CreateItem(0)
NewItem.To = "Martin.Garth"
NewItem.Recipients.ResolveAll
NewItem.Subject = "XXXXX"
NewItem.Body = "YYYYYY"
NewItem.Display
End IF
End Select
End Sub
I have created a custom form in Outlook 2010 using the same principles as detailed in this post on MS:
http://support.microsoft.com/kb/239087.
Basically the form has a Item_PropertyChanged event to create a template email message when the status changes to Completed.
For some reason when I create the task from the published form, before I save the new task the code works, but when I save the task and then change the status, nothing happens.
Any thoughts on this?
Here is the function:
Sub Item_PropertyChange(ByVal Name)
Select Case Name
Case "Status"
if Item.Status = 2 then '2 = Completed
Set NewItem = Application.CreateItem(0)
NewItem.To = "Martin.Garth"
NewItem.Recipients.ResolveAll
NewItem.Subject = "XXXXX"
NewItem.Body = "YYYYYY"
NewItem.Display
End IF
End Select
End Sub