View Single Post
 
Old 08-03-2014, 06:30 AM
AaaTeX AaaTeX is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jul 2014
Posts: 8
AaaTeX is on a distinguished road
Default Not Working as expected

I implemented the code but it is still appending the table to the previous table. So Extending it not creating a brand new table which is what I want to do.

We are using VB.Net 2010 not VBA/VB6. So we are doing
MyCopyFromRange = pCopyFromTable.Range ' pCopyFromTable is a parameter on the routine

MyCopyFromRange
.Copy

MyCopyFromRange.Collapse(Word.WdCollapseDirection.wdCollapseEnd)

MyCopyFromRange.Paste

What does Collapse do?
The previous technique I used worked on the first copy but not the second. (In the case I am working on it is trying to clone 2 tables).
Reply With Quote