Resize row height vba excel
Solved
Des auvergnats
-
MedBad -
MedBad -
Hello,
I would like to resize the height of a row in Excel using VBA, but I can't find a solution. If anyone has an idea, thank you in advance!
Configuration: Windows XP
I would like to resize the height of a row in Excel using VBA, but I can't find a solution. If anyone has an idea, thank you in advance!
Configuration: Windows XP
2 réponses
Sub Macro() Feuil1.Rows("1:1").RowHeight = 15 End Sub In a module, enter this program (to be modified according to the sheet and the row). You can then call this program using a button, depending on what you want to do exactly. With this example, you modify the height of row 1 of Sheet1 of your workbook, setting it to a height of 15.
You can do it directly like this:
Sub Macro4()
For i = 1 To 10
Feuil1.Rows(i).RowHeight = 15
Next i
End Sub