Encore une petite question:
J'ai mis en rouge 2 lignes pour protèger et déprotèger la feuille. Ça protège bien mais ne reprotège pas!
Sub SupprimerLignesVides()
ActiveSheet.Unprotect
Dim p As Range, i As Long
Application.Calculation = xlCalculationManual
Set p = Application.InputBox(Prompt:="Sélectionnez une plage", _
Title:="Supprimer lignes vides", Type:=8)
With p
For i = .Rows.Count To 1 Step -1
If Application.CountA(.Rows(i)) = 0 Then _
.Rows(i).EntireRow.Delete Shift:=xlUp
Next i
End With
Application.Calculation = xlAutomatic
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, _
Scenarios:=True
End Sub