Bonjour,
J'ai une macro (ci-dessous) pour protéger plusieurs feuilles avec des autorisations spécifiques parmi lesquelles celle permettant d'ouvrir/fermer les colonne groupées.
Elle fonctionne bien, à un détail près : Je peux fermer/ouvrir en cliquant sur le bouton "+" en haut de la page mais pas en cliquant sur les numéro du niveau de groupement (en haut à gauche de la page) !
Voici le code :
Dim FL As Worksheet
For Each FL In Worksheets
FL.Protect ("MotDePasse"),
DrawingObjects:=False, _
Contents:=True, _
Scenarios:=True, _
AllowFormattingCells:=True, _
AllowFormattingColumns:=True, _
AllowFormattingRows:=True, _
AllowInsertingColumns:=False, _
AllowInsertingRows:=True, _
AllowInsertingHyperlinks:=True, _
AllowDeletingColumns:=False, _
AllowDeletingRows:=True, _
AllowSorting:=True, _
AllowFiltering:=True, _
AllowUsingPivotTables:=True
FL.EnableOutlining = True
Next FL
End Sub
Une idée ? Merci par avance