Link to home
Start Free TrialLog in
Avatar of DrDamnit
DrDamnitFlag for United States of America

asked on

Programatically Select table cells in word

I am creating a table (oTable) and filling it up with information, adding rows, populating info, etc...

How do I programatically select cells 3,4 - 3,8 for the purposes of merging them? (Incidentally, 3,4- 3,8 is arbitrary. It could be any cell range on the same row.)
ASKER CERTIFIED SOLUTION
Avatar of [ fanpages ]
[ fanpages ]

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
for i=firstcol+1 to lastcol
       activedocument.tables(0).cell(currentrow, i).merge activedocument.tables(0).cell(currentrow, firstcol)
next i
Avatar of [ fanpages ]
[ fanpages ]

Thanks for closing the question.

BFN,

fp.