Sub MyRowHeight()
Dim i As Long
Dim myLastRow As Long
Application.ScreenUpdating = False
' Set initial value
i = 4
' Find possible number of rows
myLastRow = Rows.Count
' Do for whole sheet
Do Until i > myLastRow
Rows(i).RowHeight = 37.5
i = i + 9
Loop
Application.ScreenUpdating = True
End Sub
Sub test()
Dim srow As Long, rwcnt As Long
srow = 4 'Beginning Row
rwcnt = 9 'Interval (every x rows)
Rows(srow).RowHeight = 37.5
Range(srow & ":" & srow + rwcnt - 1).Copy
Range(srow + rwcnt & ":" & Rows.Count).PasteSpecial xlPasteFormats
End Sub
jonmo1,
What new doctrine is this? One without loops?
I feel like someone who just saw fire for the first time.
Could you explain how this works?