问题 How do I highlight rows with different colors by groups of duplicates? I don't care about which colors are used per se, I just want the duplicate rows one color, and the next set of duplicates another color. For example, if I wanted the '1s' green, the '2s' blue and so on. It goes up to 120 in my column. Thank you. 回答1: Try out this simple code and modify it per your needs. Its quite self explanatory, Sub dupColors() Dim i As Long, cIndex As Long cIndex = 3 Cells(1, 1).Interior.ColorIndex =