Worksheets(1).Columns("A:A").Select
For d = 1 To 2
Selection.FormatConditions.Add Type:=xlTextString, String:= _
Range("F" & d), TextOperator:=xlContains
S = Range("F" & d)
MsgBox S
For i = 1 To 1
With Selection.FormatConditions(i).Interior
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
On Error Resume Next
End With
Next
i = 0
Next d
'Selection.AutoFilter
'ActiveSheet.Range("$A$1:$A$5000").AutoFilter Field:=1, Criteria1:=RGB(255 _
' , 255, 0), Operator:=xlFilterCellColor
On Error Resume Next作者: GBKEE 時間: 2014-12-13 06:17