I have the following code:
Sub Worksheet_Calculate()
Dim lR As Long, Col As Range, c As Range
lR = Cells(Rows.Count, Selection.Column).End(xlUp).Row
Application.ScreenUpdating = False
For Each c In Range(Cells(1, Selection.Column), Cells(lR, Selection.Column))
If Not IsEmpty(c) Then
Set Col = c.Offset(0, -c.Offset(0, 1).Value)
c.Interior.Color = Col.Interior.Color
c.Font.Color = Col.Font.Color
End If
Next c
End Sub
It works well, however, instead of copying the color only . . . i would like to copy all the formatting of the cell. Can anyone help with that? thx