D
debbieg
Hi,
I hope I have this posted in the right group...so many choices.
I tried making my first macro tonight.
I'm using the code below in a macro to stripe a table.
As is, it makes every row white.
I need to make two rows white and the next two rows green and repeat this to
the end of the table.
Thanks a bunch,
Debbie
Dim oTbl As Table
Dim nRow As Long
If Selection.Information(wdWithInTable) Then
Set oTbl = Selection.Tables(1)
For nRow = 1 To oTbl.Rows.Count Step 1
oTbl.Rows(nRow).Shading.BackgroundPatternColor _
= wdColorWhite
Next
End If
I hope I have this posted in the right group...so many choices.
I tried making my first macro tonight.
I'm using the code below in a macro to stripe a table.
As is, it makes every row white.
I need to make two rows white and the next two rows green and repeat this to
the end of the table.
Thanks a bunch,
Debbie
Dim oTbl As Table
Dim nRow As Long
If Selection.Information(wdWithInTable) Then
Set oTbl = Selection.Tables(1)
For nRow = 1 To oTbl.Rows.Count Step 1
oTbl.Rows(nRow).Shading.BackgroundPatternColor _
= wdColorWhite
Next
End If