Fill cells with colors using openpyxl? May 23, 2023 by Tarik I believe the issue is that you’re trying to assign a fill object to a style. ws['A1'].fill = redFill should work fine.