Nlhicks
Active Member
- Joined
- Jan 8, 2021
- Messages
- 264
- Office Version
- 365
- Platform
- Windows
This code will change the values and color them Red, however it is not applying the Light blue highlight to the entire line. Any suggestions?
VBA Code:
With wksWorkOn
lngLastRow = .Range("A2", .Range("A" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeVisible).Cells(1).Row
wksFrom.Range("J13").Value = .Range("A2:A685").SpecialCells(xlCellTypeVisible).Cells.Value
For lngLooper = 11 To 18
With .Cells(lngLastRow, lngLooper - 9)
If wksFrom.Cells(lngLooper, "C") <> wksFrom.Cells(lngLooper, "F") And wksFrom.Cells(lngLooper, "F") <> "" Then
.Font.Color = vbRed
'If binColour Then
With .Range("A" & lngLastRow & ":AL" & lngLastRow).Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ColorIndex = 34
.TintAndShade = 0
.PatternTintAndShade = 0
End With
.Value = wksFrom.Cells(lngLooper, "F").Value
Else
If wksFrom.Cells(lngLooper, "F") = "" Then
.Value = .Value
End If
End If
'End If
End With
Next lngLooper
End With