Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook 2003 Custom Form VBScript Reply button

Status
Not open for further replies.

woter324

Technical User
Jan 26, 2007
179
GB
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:

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top