Python - Excel - Modify Specific Row Height with Openpyxl

Solution 1:

You're looping through ascii_uppercase and not finding the cases?

UPDATE

The height attribute expects integer values corresponding to the row numbers. You can try something like this:

for row in range(worksheet.max_row):
    if (row == 1):
        worksheet.row_dimensions[row].height = 130
    elif (row == 2):
        worksheet.row_dimensions[row].height = 25
    else:
        worksheet.row_dimensions[row].height = 15