I can find the list of conditional formatting available in the worksheet. However, how do I determine if a cell has any conditional formatting at all ?
from openpyxl import load_workbook
ws= load_workbook('Path to excel file')
WS=ws.active
cf_rules =[]
for i in WS.conditional_formatting:
cf_rules.append(i)
for row in WS.iter_rows():
for cell in row:
if ( "Check for formatting"):
print("Formatting Detected")