Hi everyone!
I'm trying to write a simple macro but cant figure out how to get the "not equals" to sign to work.
Here is a simple example of what I'm trying to do:
Sub not_equals()
If Range("A1").Value Is Not "Yes" Then
MsgBox "You must input Yes."
End If
End Sub
I also tried like this:
Sub not_equals()
If Range("A1").Value != "Yes" Then
MsgBox "You must input Yes."
End If
End Sub
Each one gives me errors... I'm sure it's something simple but please can anyone help?