[Word] 2003 VBA - Absolute Row/Col in Tables with
I need to validate the structure of a Word table in a document using VBA. For example, assume there is a 4x4 table with the middle 4 cells merged I need to determine for EVERY cell:
the staring ABSOLUTE row, column,
the number of horizontal merged cells,
the number of vertical merged cells
Does anyone know how to get this information?
With this I can determine if the table is the correct format and in what cell I will find the information I need to extract for the rest of the process.
Given the example above, the merged cells would report:
row 2, column 2, vertical 2, horizontal 2
The next cell on row 2 would report:
row 2, column 4, vertical 1, horizontal 1
What I know:
I know how to select row/columns, how to find out row size, max table size, and all the obvious stuff. I have tried the .Information() options, .Rowindex, etc. But to no avail - I still can't programatically determine what I need to do the validation.
Am I missing something in the object model? Consider the following questions:
1) How does Word get it right when you select/copy/paste-to-Notepad a column that has merged cells.
2) Do you know of any properties that will fail on a merged cell tat can be trapped with "On error" to detect which cells are merged.
ABSOLUTELY Troubled,
GeoBoater
|