Error Fill cell's color
I try to set the background color of a cell but it not affect. My excel file not be filled any color. This is my code
import openpyxl
from openpyxl.styles import PatternFill![Openpyxl_feedback](/uploads/64c0c41a5d97d746b318cf6ba29d21a1/Openpyxl_feedback.png)
from openpyxl import Workbook
wb = Workbook()
ws = wb.active
# Create a new pattern fill with a blue background
fill_custom = PatternFill(start_color='0000FF', end_color='0000FF', fill_type='solid')
# Fill cell A1 with the fill color
cell = ws['A1']
cell.fill = fill_custom
wb.save('example.xlsx')
Python: Ver 3.11.3 Openpyxl: Ver 3.1.2