title: How do I check for null value in an excel userform textbox?
body: <p>Why does the following not work?</p>
  
  <pre><code>If IsNull(Me.TextBox1.Value) = True Then
  
  MsgBox "Null"
  
  Else
  
  MsgBox "Not Null"
  
  End If
  </code></pre>
  
  <p>Here, I don't enter any value in "TextBox1" but it still passes the first <code>if</code> loop and displays "Not Null"</p>
  
  <p>How do I check for null values?</p>