I have this code that copies the 'interior fill' from column A sheet 1, and pastes it to column A sheet 2. It's supposed to skip values that aren't matches (ie. if Row 2 of both sheets have different values it wont activate) but right now its just doing a straight copy.
Sub copyCombinedFormat()
'TO BE ADDED IN
' this copies the format for matching values in combined to the weekly report
Application.ScreenUpdating = False
Dim cl As Range
Dim RowNum As Long
Dim m As Variant
Set m = Application.Match(cl.Value, Sheets("Weekly Report").Range("A:A"), 0)
If Not IsError(m) Then
For Each cl In Intersect(Sheets("Weekly Report").Range("A:A"), Sheets("Weekly Report").UsedRange)
RowNum = 0
RowNum = Application.Match(cl.Value, Sheets("Combined").Range("A:A"), 0)
If RowNum <> 0 Then
cl.Interior.color = Sheets("Combined").Range("A" & Application.Match(cl.Value, Sheets("Weekly Report").Range("A:A"), 0)).Interior.color
End If
Next cl
End If
End Sub
Any input appreciated