Duplicate the Rows in a Word Table

W

Workaholic

Hi,

I am running Word Automation (Word 2003) within an application to
drive changes to Word documents. As part of this application, I need
to be able to duplicate table rows. Adding a blank row is
insufficient, as the table rows may have specific formatting (and
text) within each cell, that all need to be duplicated. I am currently
using cut-and-paste, which is working, but is dangerous as any other
changes made to the clipboard on the PC can affect the process.

Is there a way to duplicate rows within Word tables, but without using
cut-and-paste?

Thanks
 
T

Tony Jollans

Adding a blank row should give you the formatting but not, of course, the
contents.

I don't think there is another easy way - clearly you could examine the
properties and contents of each cell in the source row and duplicate them in
the terget row but it would likely be error prone and inefficient. It may
work for you just for the contents, though.

I agree completely that cut and paste is not ideal because there is only one
clipboard but there shouldn't be a 'danger' (to your process) as, barring
user-forced interrupts, nothing should happen between the copy and the
paste - the danger is more to other users and uses of the clipboard. Many
automated processes do use cut and paste and reported problems are few so I
would think you are safe to carry on unless you (already) have a particular
issue.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top