Copy Text and Keep Formatting

J

Jason Krug

Hello-

I have been working on a mailmerge.
I had the format working, but missed some functionality.
I now have VB script that provides the functionality, but I have now lost
the formatting!

The content copy line (.Body = ActiveDocument.Content) looses all formatting
in the email body. Not only did I have BOLD and COLORED font, but I had a
Word TABLE of data. That table is lost and the data is just listed as text.
Is there a way to PRESERVE formatting in the body of the message? (having the
formatted text as an attachment is not an option)

To create the email, the VB script uses:
Source.Sections.First.Range.Cut
Documents.Add
Selection.Paste
.Subject = mysubject
.Body = ActiveDocument.Content

Any suggestions!
I have a document of merged emails that I want to send one, at a time, to
the email recepients.

Thank you,
--Jason
 
D

Doug Robbins - Word MVP

Have you tried what I suggested in response to your question about this
issue in the microsoft.public.word.mailmerge.fields newsgroup?

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

Jason Krug

Doug-

I did not know you would be working this gruop as well.

1) Email List with Separate Tables: When I perform the Merge to New
Document, the Mailmerge inserts Section Breaks between rows which makes them
separate tables. I do not see a way to get rid of them other than manually
deleting the section breaks?

2) I just tried both methods.
'.Body = ActiveDocument.Content
This is actually even worse. All text is streamed with no carriage
returns.
.BodyFormat = olFormatRichText
.Body = ActiveDocument.Content
This method produces the same results.

I thought the formatting gruop would be a better bet than the outlook group?
Still want me to try over there?

Thank you for your continued-help.
--Jason

PS: Is there a way to make this multiple email address limitation an
enhanement in the next patch? If it is a valid email address, this should
not be blocked.
 
D

Doug Robbins - Word MVP

Yes I would still suggest Outlook as it's in the Outlook area that the
problem is occuring.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

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