title: Color values in Excel VBA
body: <p>I've done a bit of searching for this one and cannot find the answer (or maybe looking in the wrong places :/)</p>
  
  <p>I am trying to find a reference for the colour values used in excel VBA. I have a few simple lines of code which change the background colour in a selected cell (in this case I am using a simple macro to invoke the code).</p>
  
  <p>I have a come across this value which was generated by the macro recorder:</p>
  
  <pre><code>Selection.Interior.Color = 15773696
  </code></pre>
  
  <p>My preference is to use RGB (the RGB equivalent of the above example is 128, 128, 128) and I have been trying find out where the macro recorder got this value from.</p>
  
  <p>Apologies if this is a FAQ.</p>
  
  <p>TIA</p>