chrscote
08-01-2016, 07:39 AM
I have a table in Word that contains a cell that merges 3 columns. In my VBA code, I have the following code:
For each oTbl in ActiveDocumnet.Tables
For each rRow in oTbl.Rows
//set text alignment
next rRow
next oTbl
However, when it gets to the table with the merged columns, I receive the Run-time error '5991' Cannot access individual rows in this collection because the table has vertically merged cells.
Is it possible to handle this case?
Chris
For each oTbl in ActiveDocumnet.Tables
For each rRow in oTbl.Rows
//set text alignment
next rRow
next oTbl
However, when it gets to the table with the merged columns, I receive the Run-time error '5991' Cannot access individual rows in this collection because the table has vertically merged cells.
Is it possible to handle this case?
Chris