Determine if a Word cell is merged
I need to programmatically add and remove rows from a Word 2010 table. Unfortunately the header of the table contains merged cells, both horizontally and vertically merged. That causes an error when using the Row.Add and Row.Delete methods. I have tested and discovered that I can programmically remove the merged cells (Cell.Split) and then do the .Add and .Delete methods and then restore the merged cells. The problem I'm having is identifying which cells that are merged. ------------------------- | 1,1 | 1,2 | 1,3 | 1,4 | ------------------------- | 2,1 | 2,2 | 2,3 | 2,4 | --------------------