Bonjour à tous,
d'abord merci! André pour avoir testé mon code, j'apprécie beaucoup.
Bobbyfrance, voici un exemple pour la protection,
With ActiveSheet
'permet filtre et grouper lignes et colonnes
.EnableAutoFilter = True
.EnableOutlining = True
'pour les options de protection que vous ne désirer pas autoriser: changer True pour False
.Protect Password:="", _
DrawingObjects:=True, _
Contents:=True, _
Scenarios:=True, _
AllowFormattingCells:=True, _
AllowFormattingColumns:=True, _
AllowFormattingRows:=True, _
AllowInsertingColumns:=True, _
AllowInsertingRows:=True, _
AllowInsertingHyperlinks:=True, _
AllowDeletingColumns:=True, _
AllowDeletingRows:=True, _
AllowSorting:=True, _
AllowFiltering:=True, _
AllowUsingPivotTables:=True, _
UserInterfaceOnly:=True
End With