Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Merge Documents in Memory
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 |
#2
|
|||
|
|||
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 "Tim Baur" wrote in message 48.16... 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 |
#3
|
|||
|
|||
"Jonathan West" wrote in news:OrkieQGlFHA.3336
@tk2msftngp13.phx.gbl: 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. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
print multiple documents or merge multiple documents into one | Microsoft Word Help | |||
Combining multiple merge documents | Mailmerge | |||
How do i merge footnotes when i merge documents. | Microsoft Word Help | |||
Merge to printer as individual documents. | Mailmerge | |||
Merge multiple documents? | New Users |