title: Setting a cell's fill RGB color with pywin32 in excel?
body: <p>I'm avoiding using any other set of modules.</p>
  
  <p>What I am trying to do is set a cell's color in Excel, using the pywin32 libary. So far I've found how to get the cells color:</p>
  
  <pre><code>print xl.ActiveSheet.Cells(row, column).interior.color
  </code></pre>
  
  <p>and you can set it simply by assigning it in a similar fashion:</p>
  
  <pre><code>xl.ActiveSheet.Cells(row, column).interior.color = 0 #black
  </code></pre>
  
  <p><strong>My question is how to set the cell's colour in RGB?</strong></p>
  
  <p>I need something called a ColorTranslator to OLE , but I don't know how to access <code>system.drawing</code> since it seems like it's a <code>.NET</code> thing. <a href="http://msdn.microsoft.com/en-us/library/system.drawing.colortranslator.toole.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.drawing.colortranslator.toole.aspx</a></p>