title: What is the equivalent of logical negation/not operator
body: <p>I've to execute a piece of code written in Visual Basic for Applications (VBA) when the excel cell is <em>not</em> empty. I've written below piece of code so far:</p>
  
  <pre><code>Public Sub BindTitles(ByVal cell As Range)
      If IsEmpty(cell.Value) Then
          Application.EnableEvents = False
          'other code
      End If
  End Sub
  </code></pre>
  
  <p>I want to invert the logical condition present in <code>If</code> statement. In C#, I use <a href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/logical-negation-operator" rel="nofollow noreferrer">exclamation operator <code>!</code></a> but when I put it in <code>If</code> block it gives below error:</p>
  
  <blockquote>
    <p>Compile error:</p>
    
    <p>Invalid or unqualified reference</p>
  </blockquote>