J
Jen
I am currently using the following macro to set all tables with
heading rows repeat, and it works great:
Sub TablesAllHeaderRepeat()
Dim i As Long
With ActiveDocument
For i = 1 To .Tables.Count
.Tables(i).Rows(1).HeadingFormat = True
Next i
End With
Selection.HomeKey Unit:=wdStory
End Sub
However, now I want to modify that macro so that it only adjusts the
heading row IF that row is a certain style. So...
for each table
If the style applied to the row is "TableHeading", then set the
heading row to repeat
Otherwise, do nothing.
Thoughts?
heading rows repeat, and it works great:
Sub TablesAllHeaderRepeat()
Dim i As Long
With ActiveDocument
For i = 1 To .Tables.Count
.Tables(i).Rows(1).HeadingFormat = True
Next i
End With
Selection.HomeKey Unit:=wdStory
End Sub
However, now I want to modify that macro so that it only adjusts the
heading row IF that row is a certain style. So...
for each table
If the style applied to the row is "TableHeading", then set the
heading row to repeat
Otherwise, do nothing.
Thoughts?