选择行,然后填充,不知道你的软件是03还是07的,我用的是07的
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
Cells.FormatConditions.Delete
With Target.EntireRow.FormatConditions
.Delete
.Add xlExpression, , "TRUE"
.Item(1).Interior.ColorIndex = 20
End With
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
R = Target.Row
Rows(R).Interior.ColorIndex = 3
End Sub