Alors la solution de Xorsankukai me plait plus. Par contre je ne comprends pas, j'ai toujours le même problème avec l'indice 9.
Voila la macro quand j'essaye de l'adapter à l'onglet n°4 "71 - BAB" :
Private Sub CommandButton1_Click()
Dim LastLig As Long, i As Long
Application.ScreenUpdating = False
With Worksheets("Feuil4")
LastLig = .UsedRange.Rows.Count + .UsedRange.Row - 1
For i = LastLig To 2 Step -1
If Application.CountA(.Rows(i)) = 0 Then .Rows(i).Delete
Next i
End With
End Sub
Private Sub ToggleButton1_Click()
If ToggleButton1.Value = True Then
Call masque
Else
Call affiche
End If
End Sub
Encore merci d'avance pour votre aide .