title: VBA- Is it possible to code an If/Then statement based on if a trimmed text changes color from black to white
body: <p>Current code below doesn't work because it finds the RsnChng is <strong>always</strong> = "Reason".</p>
  
  <p>Initially where I thought the term "Reason" was popping up, I figured I could just code for that, but in actuality it's always there just not visible because it's colored black same as the background so you don't see it, - the text color for it turns white when it needs an action done.</p>
  
  <p>So is there a way I could toss into the code below to determine the text color is white and then execute the code?</p>
  
  <pre><code>RsnChng = Trim(HE.CurrentHost.TextRC(20, 2, 6))
  If RsnChng = "Reason" Then
      HE.CurrentHost.PutText "Finished by MPT055", 20, 20
      Utilities.PressKey "ENTER", False, UseIBM1, "6", , "YES", "BUTTONS"
  End If
  </code></pre>
  
  <p>Thanks in advance,
  Mike</p>