Newbie - I have a Python script that adjusts the width of different columns of an excel file, according to the values specified:
import openpyxl
from string impo
If possible you should determine the length of the longest entry in the column and use that to set the width.
I'm assuming you can make use of for entry in ascii_uppercase.
I'm on mobile atm so can't give a concrete code example but what I said before should help you get closer to what you want to achieve.