I am trying these lines
current_height = ws.row_dimensions[cell.row].height
if current_height is not None and current_height < 100:
ws.row_dimensions[cell.row].height = 100
The rows are already autofit but I need to set specific row height to be 100 if only the row less than 100