I've been writing code to do this but numerous bugs etc. and I've wasted too much time on it now. How do I span the following background colors across the rest of the respective rows? I need the color/background scheme/everything seen in the image below to be copied, not values or formulas within the cells, just the looks.
Code:
Sub SetRowUnifiedStyle()
For i = 2 To 15571
If Range("AN" & CStr(i)) <> 0 Then
Range("AN" & CStr(i) & ":CA" & CStr(i)).Interior.Color = Range("B" & CStr(i)).Interior.Color
Range("AN" & CStr(i) & ":CA" & CStr(i)).Interior.Pattern = Range("B" & CStr(i)).Interior.Pattern
End If
Next i
End Sub