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

Re: Merge Documents in Memory by Jonathan

Jonathan
Fri Jul 29 12:20:05 CDT 2005

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" <trbo20DISREG@RDyahoo.com> wrote in message
news:Xns96A278A20229Ctrbo20DISREGARDyahoo@207.46.248.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


Re: Merge Documents in Memory by Tim

Tim
Fri Jul 29 14:47:01 CDT 2005

"Jonathan West" <jwest@mvps.org> 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.

Re: Merge Documents in Memory by Tim

Tim
Fri Jul 29 15:37:37 CDT 2005

"Jonathan West" <jwest@mvps.org> 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.