title: What is the equivalent of "!=" in Excel VBA?
body: <p>The problem is that <code>!=</code> does not work as a function in excel vba.</p>
  
  <p>I want to be able to use </p>
  
  <p><code>If strTest != "" Then</code> instead of <code>If strTest = "" Then</code></p>
  
  <p>Is there another approach to do this besides <code>!=</code>?</p>
  
  <p>My function to mimic <code>!=</code> is </p>
  
  <pre><code>Sub test()
  
  Dim intTest As Integer
  Dim strTest As String
  
  intTest = 5
  
  strTest = CStr(intTest) ' convert
  
  Range("A" + strTest) = "5"
  
  
  
      For i = 1 To 10
          Cells(i, 1) = i
  
          If strTest = "" Then
              Cells(i, 1) = i
          End If
  
      Next i
  
  
  End Sub
  </code></pre>