How do I change row height in Excel sheet?

I do not want the rows to be AutoFit because they go extremely wide. I need row height = 15.

Hi @afalciola
Welcome to UiPath Community
You could use autofit range modern excel activity

@afalciola

You can try using invoke vba with this

Function ChangeHeight(str as String, RowPosition As Long, dblHeight As Double)
    ThisWorkbook.Worksheets(str).Rows(RowPosition).RowHeight = dblHeight
End function

Cheers

Is there a way to set the row height to 15 using this Autofit Range?

No, you can’t do that using the auto-fit range activity. But below post would be useful

ok, I found easier way to do this using an Excel template with all formats needed including row height desire.
Use this template to plop (copy/paste) data table For Each Sheet and it works!

1 Like