: << Can't remember how to automatically shade every other row.
Can you help? >>
The following macro should help. If you need instructions on installing
macros, see:
http://www.gmayor.com/installing_macro.htm
If you add new rows after running the macro, just run it again.
Sub ShadeEveryOtherRow()
Dim oTable As Table
Dim oRow As Row
Dim bClear As Boolean
On Error GoTo ErrorHandler
bClear = True
Set oTable = Selection.Tables(1)
For Each oRow In oTable.Rows
If bClear Then
oRow.Shading.BackgroundPatternColor = wdColorWhite
Else
oRow.Shading.BackgroundPatternColor = wdColorGray15
End If
If bClear = True Then
bClear = False
Else
bClear = True
End If
Next oRow
Exit Sub
ErrorHandler:
If Err.Number = 5941 Then
MsgBox "The cursor must be positioned in the table you want to
shade." _
& vbCr & vbCr & "Position the cursor and run this macro
again."
End If
End Sub