title: Check Cell Style in VBA
body: <p>I have a spreadsheet that has a number of cells styled "Good" and "Bad" From the home tab.  I would like my VBA program to check if a cell is formatted as "Good" or "Bad".  I can't find any answers on here about the style of a cell.  I can tell you what I have tried and found it not working:</p>
  
  <p>if Range("f2").style = "good" then
  do stuff
  end if</p>
  
  <p>Excel 2010
  Thanks for any help</p>