How to Paste a Table with Word Automation

I am doing Word (2003) automation. In my app, I have two documents open. Doc1 contains this string: **SOURCEINFO**.

Doc2 is a document that contains formatted text and multiple tables.

I want to replace the string **SOURCEINFO** in Doc1 with the entirety of Doc2.

Can you show me the best way that preserves all the formatting in Doc2?
AIBMassAsked:
Who is Participating?
 
AIBMassConnect With a Mentor Author Commented:
Selection.PasteAndFormat(0)
0
 
Joanne M. OrzechManager, Document Services CenterCommented:
I'm not quite sure I understand your question completely - what type of automation are you talking about?  VB?  

Or you could always use the INCLUDETEXT field code....
http://daiya.mvps.org/includetext.htm
0
 
AIBMassAuthor Commented:
I am talking about Office automation in VB.Net

Dim Word as application, etc.....


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.