I have a huge data formatted with conditional formatting but only 10% of the cells are colored by conditional formatting so i want to copy only colored cells color to a copied range
this a code to copy conditional formatting color from range to range. I want to know how to skip white color from copying so that i can reduce this loop time by 90%
Sub MatchColors2()
Dim rngTo As Excel.Range
Dim rngFrom As Excel.Range
Dim i As Long
Dim j As Long
Set rngFrom = ActiveSheet.Range("C5:G1000")
Set rngTo = ActiveSheet.Range("I5:M1000")
For i = 1 To rngFrom.Areas.Count
For j = 1 To rngFrom.Areas(i).Cells.Count
rngTo.Areas(i).Cells(j).Interior.Color =rngFrom.Areas(i).Cells(j).DisplayFormat.Interior.Color
Next j
Next i
End Sub
Thanks