I have a macro that takes the description of an email that I've selected and populates the "message" field of a form that is created from a template:
sText = olItem.Body
Set msg = Application.CreateItemFromTemplate("C:emplate.oft")
With msg
.Subject = "Test"
.To = "user@user.com"
'Set body format to HTML
.BodyFormat = Outlook.OlBodyFormat.olFormatHTML
.HTMLBody = "<HTML><BODY>EmailDesc: " + sText + "</BODY></HTML>"
.Display
End With
In this template, I have more fields to fill, like combobox.. for example.
I would like to know, how do I get the value of this combo when I click on the send button, and concatenate it to the contents of the email before sending?
Generating something like this:
EmailDesc: TEST SEND EMAIL BLA BLA BLA..
ComboboxValue: Item1
Thx
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…