How do I detect a Word table with (horizontally) merged cells?

Posted by Reuben on Stack Overflow See other posts from Stack Overflow or by Reuben
Published on 2010-12-24T02:09:01Z Indexed on 2011/01/03 23:53 UTC
Read the original article Hit count: 220

Filed under:
|

When a Word table contains horizontally merged cells, accessing aTable.Columns.First or performing a For Each over aTable.Columns will result in an error.

Is there a way to determine if a table contains horizontally merged cells without resulting in an error?

I've read Determine if a Word cell is merged, but that is about detecting if a particular Word table cell is merged, rather than does the whole table have any merged cells.

© Stack Overflow or respective owner

Related posts about msword

Related posts about word-vba