kpm
11-19-2012, 11:27 AM
Hi all,
I have a two column table. I would like to find cells in column 2 that are empty. If they are empty then they should merge with column 1 in the same row. I would also like to loop through the table to check other rows.
This works with the top row:
If ActiveDocument.Tables.Count >= 1 Then
With ActiveDocument.Tables(1)
.Cell(Row:=1, Column:=1).Merge _
MergeTo:=.Cell(Row:=1, Column:=2)
.Borders.Enable = True
End With
Can anyone help me loop this so that it checks the whole table.?
Many thanks and regards
I have a two column table. I would like to find cells in column 2 that are empty. If they are empty then they should merge with column 1 in the same row. I would also like to loop through the table to check other rows.
This works with the top row:
If ActiveDocument.Tables.Count >= 1 Then
With ActiveDocument.Tables(1)
.Cell(Row:=1, Column:=1).Merge _
MergeTo:=.Cell(Row:=1, Column:=2)
.Borders.Enable = True
End With
Can anyone help me loop this so that it checks the whole table.?
Many thanks and regards