Can someone please tell me why this is not working?
Function CHECKERROR1(a As Long, b As Long) As Range
If a = b Then
Else
CHECKERROR1.Font.Color = vbRed
CHECKERROR1.Value = "ERROR"
End If
End Function
I want to return a red 'ERROR' when the two numbers don't match