J
Jesslyn Hendrix
I have an Outlook form and need to copy the contents of a Word document with
it's variables into the htmlbody of the form. How would I do that? When
cutting and pasting manually, it works fine, when I use the below code, I
get all the text, but it is unformatted and I need the bold, underlines,
etc.
the code to paste into the body of the email
gettext= replace(gettext, "!Pops", wrdFileText)
omail.htmlbody = gettext
the code that copies from word
objWord.Selection.WholeStory
objWord.Selection.Fields.Update
'objWord.Selection.copy
wrdFileText = objword.selection.text
it's variables into the htmlbody of the form. How would I do that? When
cutting and pasting manually, it works fine, when I use the below code, I
get all the text, but it is unformatted and I need the bold, underlines,
etc.
the code to paste into the body of the email
gettext= replace(gettext, "!Pops", wrdFileText)
omail.htmlbody = gettext
the code that copies from word
objWord.Selection.WholeStory
objWord.Selection.Fields.Update
'objWord.Selection.copy
wrdFileText = objword.selection.text