title: VBA: Why would the Not operator stop working?
body: <p>This has me utterly baffled.</p>
  
  <pre><code>Sub testChangeBoolean()
    Dim X As Boolean       ' default value is False
    X = True               ' X is now True
    X = Not X              ' X is back to False
  End Sub
  </code></pre>
  
  <p>But I'm trying to toggle the .FitText property in a table cell (in Word).  .FitText starts as True.  </p>
  
  <p>If I assign it to X:</p>
  
  <pre><code>Sub testChangeBoolean()
    Dim X As Boolean                  ' again, default is False
    X = Selection.Cells(1).FitText    ' does set X to True
    X = Not X                         ' X is still True!
  End Sub
  </code></pre>
  
  <p>I just don't understand what I'm doing wrong.</p>