openpyxl icon indicating copy to clipboard operation
openpyxl copied to clipboard

DataValidation showDropDown not working

Open ana-stankovic opened this issue 1 year ago • 2 comments

I am using pandas and openpyxl to generate a excell sheet. Everything works except:

validation = DataValidation(
    type="list",
    formula1='"Keep,Delete,Production"',
    allow_blank=True,
    showDropDown=True
)

Validation to the cells is added, but the dropdown is not shown and it has to be added manually.

ana-stankovic avatar May 17 '23 14:05 ana-stankovic

This caught me out a while ago, you have to set showDropDown=False to get the dropdown to show

alexc-yellowcanary avatar Feb 09 '24 06:02 alexc-yellowcanary

This is amazing, it actually works xD

ana-stankovic avatar Feb 09 '24 10:02 ana-stankovic