I have the following vba code which worked in all previous versions of Word to copy text to an email message and keep formatting:
Code: Select all
strBody = ActiveDocument.HTMLProject.HTMLProjectItems(1).text
I have found suggestions to use DataObject or convert to XML then back to html, but unsure how to do this. Can anyone please provide code which will do the same as the above?
I posted this on msdn yesterday but have received no replies as yet.
Many thanks