Hello,
I am getting an error with the code below. The error is "Unable to set the Bold Property of the Font class"
Any help would be greatly appreciated!
I am getting an error with the code below. The error is "Unable to set the Bold Property of the Font class"
Code:
Sub CFAHTNeg()
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=IF($M6=""Above"",TRUE,FALSE)"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Font
.Bold = True
.Color = 16777215
.TintAndShade = 0
End With
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 255
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = False
End Sub
Any help would be greatly appreciated!
Last edited: