|
发表于 2016-3-29 06:48
|
显示全部楼层
本楼为最佳答案
- Sub Macro1()
- Dim arr, w, i&, j%
- arr = Sheet1.UsedRange
- w = Array("税金及附加", "变动收益")
- Sheet1.UsedRange.Interior.ColorIndex = xlNone
- For i = 6 To UBound(arr)
- For j = 0 To UBound(w)
- If arr(i, 2) Like "*" & w(j) & "*" Then
- Cells(i, 1).Resize(1, UBound(arr, 2)).Interior.ColorIndex = 6: Exit For
- End If
- Next
- Next
- End Sub
复制代码 |
|