Bonjour,
Veuillez trouver ci-joint une proposition de macro, dont le code se trouve ci-dessous.
Sub InsertRowsAndSetHeight()
Dim ws As Worksheet
Set ws = ActiveSheet
Dim lastRow As Long, i As Long
' ligne de fin
lastRow = ws.Cells(ws.Rows.Count, 1).End(xlUp).Row
' ligne de départ
i = 8
Do
ws.Rows(i).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
ws.Rows(i).RowHeight = 5
' augmentation de l'indice max car ligne insérée
lastRow = lastRow + 1
' saut de 4+1 = 5 lignes
i = i + 5
Loop While i < lastRow
End Sub