I'm creating a pop-up form to be used when replying to e-mails. I've created a new Userform and I can send data from an e-mail to the pop-up Userform, but I don't know how to send data back from the Userform to the original e-mail. Can anyone help?
Here's the code:
------------------------------
'create reference to current e-mail message.
Dim objMailItem As Outlook.MailItem
Set objMailItem = Application.ActiveInspector.CurrentItem
'Create a reference to the body content of the e-mail.
Dim myMailBody As String
myMailBody = objMailItem.Body
'load & show the pop-up Userform.
Load frmSelectReply
frmSelectReply.TextBox1.Text = myMailBody
frmSelectReply.Show
------------------------------
Now the Userform (frmSelectReply) will show up and I can make some changes to the e-mail content, including ticking various checkboxes on the Userform.
Then how can I pass these value back to the original e-mail?
Does the code go in the module for the form?
Any ideas?
May
Here's the code:
------------------------------
'create reference to current e-mail message.
Dim objMailItem As Outlook.MailItem
Set objMailItem = Application.ActiveInspector.CurrentItem
'Create a reference to the body content of the e-mail.
Dim myMailBody As String
myMailBody = objMailItem.Body
'load & show the pop-up Userform.
Load frmSelectReply
frmSelectReply.TextBox1.Text = myMailBody
frmSelectReply.Show
------------------------------
Now the Userform (frmSelectReply) will show up and I can make some changes to the e-mail content, including ticking various checkboxes on the Userform.
Then how can I pass these value back to the original e-mail?
Does the code go in the module for the form?
Any ideas?
May