zq1956 said:
yeah,the rowspan can be calculate,but through width to get
columnspan is not good work.because sometime the cell.width/table.width
could be 1.but I can sure there is not 1
how can I post the table?
Not sure I understand you.
I'd put the table in another document, export it to HTML, and look what Word
figures out for the colspan.
Or clean that up if you want to go to HTML anyway.
I'm pretty sure Word keeps track of the colspan internally, but it does not
seem accessible to VBA.
In Word 2003 or 2007, you could also select the table, and get
sTest=Selection.Range.XML
Looking at that also could help get the rowspans and colspans.
Regards,
Klaus