Search code examples
pythoncolorscharacterxlwings

xlwings:change the color of character from Python


I'm useing xlwings on a Windows.I'd like to change the color of the character input to a cell.But the cord isn't understood.Please give the assistance.Thank you.


Solution

  • The following should work:

    import xlwings as xw
    wb = xw.books.active
    wb.sheets[0]['A1'].font.color = (0, 255, 0)