Merge Documents in Memory

T

Tim Baur

I have a project that involves opening several Word documents in memory,
making changes to the text, merging them into one master document, and
printing it to one file. The problem I'm facing is that I can't figure out
how to merge the document objects without saving them first.

Word appears to have no problem merging documents from file, but I would
rather avoid this. Writing the changed document to file first would cause
unnecessary overhead.

I considered programmatically using cut and paste operations to accomplish
the merge, but this seems like a hack. Can anyone suggest a better way?

Many thanks in advance,
-Tim
 
J

Jonathan West

Hi Tim,

Take a look at the FormattedText property in the Word VBA help. The code
example contains details on how to copy formatted text between open
documents without using the clipboard.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
T

Tim Baur

Hi Tim,

Take a look at the FormattedText property in the Word VBA help. The code
example contains details on how to copy formatted text between open
documents without using the clipboard.

Thanks, Jonathan. I'll give that a go.
 

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