title: How to change the color of single characters in a cell in excel with python win32com?
body: <p>I have a question regarding the win32com bindings for excel. I set up early bindings and followed some examples from the "Python Programming on Win32" book from O'Reilly.</p>
  
  <p>The following code works fine:</p>
  
  <pre><code>book2.xlApp.Worksheets('Sheet1').Cells(1,1).Font.ColorIndex = 1
  book2.xlApp.Worksheets('Sheet1').Cells(1,1).Font.ColorIndex = 2
  </code></pre>
  
  <p>It changes the font color of the whole cell according to the number.
  However this does not work:</p>
  
  <pre><code>book2.xlApp.Worksheets('Sheet1').Cells(1,1).Characters(start,length).Font.ColorIndex = 1
  </code></pre>
  
  <p>I get the following callback:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;interactive input&gt;", line 1, in &lt;module&gt;
  AttributeError: Characters instance has no __call__ method
  </code></pre>
  
  <p>However in Excels VBA the code works. Can anybody point me to the solution? 
  I really need to change parts of a string in an excel cell.</p>
  
  <p>Thank you very much.</p>