Subject Field of email equal to 2 fields in word form

W

Worsty

I want to concatenate 2 fields from my word form as my email subject.

I know this is wrong but could someone help me out with the correct
syntax?

Thanks,

.Subject = ActiveDocument.FormFields("JobNumber", "Dropdown1").Result
 
G

Greg Maxey

..Subject = ActiveDocument.FormFields("Text1").Result & _
" " & ActiveDocument.FormFields("Text2").Result
 
W

Worsty

.Subject = ActiveDocument.FormFields("Text1").Result & _
           " " & ActiveDocument.FormFields("Text2").Result





- Show quoted text -

Your code gives me a "False" in the subject instead of the results of
the 2 form fields.
 
D

Doug Robbins - Word MVP

Did you change the names of the formfields in Greg's code to those that
actually are used in your document

.Subject = ActiveDocument.FormFields("JobNumber").Result & " " &
ActiveDocument.FormFields("Dropdown1").Result

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.

.Subject = ActiveDocument.FormFields("Text1").Result & _
" " & ActiveDocument.FormFields("Text2").Result





- Show quoted text -

Your code gives me a "False" in the subject instead of the results of
the 2 form fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top