title: Use Font.Color as Condition in If Statement
body: <p>I am currently trying to use the font color as a condition to check against in an if statement.  It seems incredibly easy, but VBA doesn't seem to be able to do it.</p>
  
  <p>I can't show my actual code as it has proprietary information in it, but I have even tried a simple version of my code with no avail.  That code is shown below.</p>
  
  <pre><code>Sub Testing()
  
  Cells(1,1).Font.Color = -16776961
  If Cells(1,1).Font.Color = -16776961 Then
       Cells(1,3) = "Worked!"
  Else
       Cells(1,3) = "Didn't Work!"
  End If
  
  End Sub
  </code></pre>
  
  <p>The first line of code actually changes the font color or cell A1 to red.  However the conditional statement doesn't work for some reason.</p>