I'm using openpyxl to build a data-entry template to distribute to users. Some of these columns will have the possible values of ("true", "false", "unknown"), so I would like Excel to treat these columns as text instead of Boolean, even if the users only enter the values of "true" or "false" into them. I don't know up front how many rows any particular user will be entering, so looping through the whole sheet with
template_ws.cell(row_number, column_number).number_format = "@"
is not practical because I'd have to do it for all 1048576 potential rows.
If I was doing this in Excel, I'd click on the column letter and then change the format from "General" to "Text". Is there a programmatic way to do this with openpyxl without having to format each individual cell?