I am trying to color background color of a cell using openpyxl 2.0.4 and Python 2.7.5
Code snippet attached and also pasted below.
Here is the code snippet.
import openpyxl
from openpyxl import Workbook
from openpyxl.styles.fills import PatternFill
from openpyxl.styles.colors import Color
# writing contents
wb = Workbook()
ws = wb.active
ws.title = 'sum'
ws['A3'] = 100
print ws.cell('A3').value
yellow_pattern_fill = PatternFill(start_color= '00FFFF00', end_color= '00FFFF00', fill_type="solid")
ws.cell('A3').fill=yellow_pattern_fill
wb.save("ExcelCellColor_workbook.xlsx")