How to copy a word table multiple times to a specific place using VB.Net 2010?
I have viewed the other responses and these seem just not to work.
I am working on a VB.Net 2010 program using the Interop class.
We are having problems trying to duplicate a table more than 1 time to be put in the place we want.
It is either merging it with the original table in the Word Doc or putting it into the next table.
Is there a clear explanation on how a table can be duplicated 2-3 times?
It copies the first table fine but the 2nd is inserted into the table following the original table.
Imports Word = Microsoft.Office.Interop.Word
We are currently using functions as:
Rng = MyCopyFromRange
For MyCnt = 1 To pNoOf
WordApp.Selection.InsertAfter(MySepStr) ' not then it appends to the DevTable
WordApp.Selection.MoveDown() ' Move down needed if not appends to origina table
WordApp.Selection.Paste() ' Manual paste works without the move down this does not. It puts it in the next table