V
Vince
Jezebel,
I am sorry to repost but I fear you (or others) may think that my question is
solved. I would be grateful for answers to this.
Vince
---------------------------------------
Thanks for your reply.
I am totally stuck here (coffee or loo break didn't help either). Here's my
code:
For i = 1 To ActiveDocument.Tables.Count
ActiveDocument.Tables(i).Select
If Not ActiveDocument.Tables(i).Uniform Then
For j = 1 To ActiveDocument.Tables(i).Rows.Count
For Each acell In ActiveDocument.Tables(i).Rows(j).Cells
acell.Select
MsgBox acell.Range.text & " " & acell.ColumnIndex & " " & "
" & acell.Next.ColumnIndex
Next
Next
End If
Next
The column index value seems to be the real value (as it appears in the
table) and the merged cells are ignored. What I mean is, supposing the row
has 7 cells:
CELLS: 1,1 1,2 - 1,3 1,4 - 1,5 1,5 - 1,6
COLUMNS: 1 2-3 4-5 5-6
I don't get "1 2 ; 2 4 ; 4 6; 6 1 " as my message box returns, I instead
get: "1 2; 2 3 ; 3 4 ; 4 1" meaning word pretends that the cells that were
merged aren't there. How can I detect the span then? Please help me figure
this out!
Thanks a lot!
Vince
I am sorry to repost but I fear you (or others) may think that my question is
solved. I would be grateful for answers to this.
Vince
---------------------------------------
Thanks for your reply.
I am totally stuck here (coffee or loo break didn't help either). Here's my
code:
For i = 1 To ActiveDocument.Tables.Count
ActiveDocument.Tables(i).Select
If Not ActiveDocument.Tables(i).Uniform Then
For j = 1 To ActiveDocument.Tables(i).Rows.Count
For Each acell In ActiveDocument.Tables(i).Rows(j).Cells
acell.Select
MsgBox acell.Range.text & " " & acell.ColumnIndex & " " & "
" & acell.Next.ColumnIndex
Next
Next
End If
Next
The column index value seems to be the real value (as it appears in the
table) and the merged cells are ignored. What I mean is, supposing the row
has 7 cells:
CELLS: 1,1 1,2 - 1,3 1,4 - 1,5 1,5 - 1,6
COLUMNS: 1 2-3 4-5 5-6
I don't get "1 2 ; 2 4 ; 4 6; 6 1 " as my message box returns, I instead
get: "1 2; 2 3 ; 3 4 ; 4 1" meaning word pretends that the cells that were
merged aren't there. How can I detect the span then? Please help me figure
this out!
Thanks a lot!
Vince