Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hi,
try this which formats the range as an offset from the activecell
Sub CF_Cells()
'Set up offset cell reference
Set Rng = ActiveCell.Offset(, 1).Resize(, 12)
With Rng
.FormatConditions.Delete
..FormatConditions.Add Type:=xlExpression, Formula1:="=NOT(ISNUMBER(" & Rng.Address(0, 0) & "))"
.FormatConditions(Rng.FormatConditions.Count).SetFirstPriority
End With
With Rng.FormatConditions(Rng.FormatConditions.Count).Font
.Bold = False
.Color = 0 'Non-bold Black type
.TintAndShade = 0
End With
With Rng.FormatConditions(Rng.FormatConditions.Count).Interior
.PatternColorIndex = xlAutomatic
.Color = 682978 'Brown background
.TintAndShade = 0
End With
Rng.FormatConditions(Rng.FormatConditions.Count).StopIfTrue = True
End Sub
Edit.. Change to remove bug in range
If this post answers your question, please mark it as the Answer.
Mike H