Dim i As Long, LigFin As Long
Dim j As Integer, Cells_Masque As Range, Cel_en_Cours As Range
Const NbCol = 5 'Nombre de colonnes
Application.ScreenUpdating = False
Application.DisplayAlerts = False
With Sheets("Feuil1") 'A adapter
.Rows(7).Insert
For j = 1 To NbCol
.Cells(7, j) = Chr(65 + j)
Next j
LigFin = .Cells(Rows.Count, 1).End(xlUp).Row
If .FilterMode Then .ShowAllData
.Range(.Cells(7, 1), .Cells(LigFin, NbCol)).AdvancedFilter xlFilterInPlace, , , True
For i = LigFin To 8 Step -1
If .Rows(i).Hidden And Application.CountBlank(.Range(.Cells(i, 1), .Cells(i, NbCol))) <> NbCol Then '.Rows(i).Delete
If Cells_Masque Is Nothing Then
Set Cells_Masque = .Range("A" & i)
Else
Set Cells_Masque = Application.Union(Cells_Masque, .Range("A" & i))
End If
End If
Next i
If .FilterMode Then .ShowAllData
If Not Cells_Masque Is Nothing Then
For Each Cel_en_Cours In Cells_Masque
Cel_en_Cours.EntireRow.Hidden = True
Next Cel_en_Cours
Set Cells_Masque = Nothing
End If
.Rows(7).Delete
End With
Application.DisplayAlerts = True