PDA

View Full Version : Solved: Need to move text from one cell in table to another cell in table



clhare
05-03-2007, 06:24 AM
Can anyone tell me how to move text from a specific row & cell location in a Word doc to another specific row & cell location? Example would be to move text from row 1, cell 3 to row 4, cell 5.

Thanks!

fumei
05-03-2007, 07:09 AM
I think you mean:
row 1, column 3
row 4, column 5

If so, and assuming table 1....ActiveDocument.Tables(1).Cells(4,5).Range.Text _
= ActiveDocument.Tables(1).Cells(1,3).Range.Text

If you are doing a number of actions I would make a Table object, and a Cell object and use them.

clhare
05-03-2007, 09:41 AM
Cool! Thanks so much!