Sub Protege_feuille()
Dim nombre As Integer
nombre = ActiveWorkbook.Sheets.Count
Application.ScreenUpdating = False
For i = 1 To nombre
Worksheets(i).Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="toto"
Worksheets(i).EnableSelection = xlUnlockedCells
'Worksheets(i).Visible = False
Next i
' on affiche les étapes de la macro
Application.ScreenUpdating = True
Application.DisplayAlerts = True