Hello again,
I have this section of codes that I pieced together with a lot of trials and errors. The purpose is to shade alternate rows of selected table.
[VBA]
lastRow = Selection.Information(wdMaximumNumberOfRows)
If lastRow <= 3 Then
MsgBox "No need for shading"
Exit Sub
End If
For i = 3 To lastRow
Selection.Tables(1).Rows(i).Select
Selection.Cells.Shading.BackgroundPatternColor = wdColorLime
i = i + 1
Next i
[/VBA]
I would like to take it further by allowing the user to select the Shading color, and Pattern Style and color from Word color dialog box. The alternate rows are then shaded (or filled with pattern style and color) with the selected ones.
Really appreaciate all the helps.
Regards
Rid