Conditional formatting over huge range in excel, using VBA
问题 I have an excel workbook that has about 30k rows in a given column. I need to cross validate another equally huge list to see if there are any matches. If so, then I want it to highlight that cell. As suggested in other threads, I recorded the macro manually and the code is: Sheets("Main").Select Columns("D:D").Select Selection.FormatConditions.Add Type:=xlTextString, String:= _ "=list1!$A$1", TextOperator:=xlContains Selection.FormatConditions(Selection.FormatConditions.Count)