Hi,
I have a custom form in Outlook 2003. The form has a button on it that activates if items on the form are changed. If the form is changed, It should then change the receipient to the sender (reply).
All my Goolge searching does not find any sample code and my attempts have failed.
Here is my latest attempt that doesn't work:
Any pointer would be greatfully received.
Many thanks
W.
I have a custom form in Outlook 2003. The form has a button on it that activates if items on the form are changed. If the form is changed, It should then change the receipient to the sender (reply).
All my Goolge searching does not find any sample code and my attempts have failed.
Here is my latest attempt that doesn't work:
Code:
Sub caSubmit_Click()
Set oPage1 = Item.GetInspector.ModifiedFormPages("Message")
Set oTbFrom = oPage1.Controls("_RecipientControl1")
Set oTbTest = oPage1.Controls("TextBox7")
'Item.Actions("caSubmit").execute
If blnRevised = true then
'Item.to = Item.From
'msgbox blnRevised
msgbox oTbFrom.Text
oTbTest.Text = oTBFrom.Text
End If
'Item.Close 1
End Sub
Any pointer would be greatfully received.
Many thanks
W.