I want to set the width of all columns in excel sheet. I can set the specific column width by
ws.column_dimensions['A'].width = 2.5
I tried to implement in this way.
cell_range = ['A','B','C','D','E','F','G','H','I','J']
for col_names in cell_range:
ws.column_dimensions[col_names].width = 2.5
How can I iterate through all the name of columns?