Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Protection et mdp

3 réponses
Avatar
sunburn
Bonjour,
comment puis-je ajouter un mot de passe à cette protection ?? :
-----
Sub ProtegerFeuilles() ' Protection de toutes les feuilles d'un classeur
Dim nombre As Integer
nombre = ActiveWorkbook.Sheets.Count
Application.ScreenUpdating = False
For I = 1 To nombre
With Worksheets(I)
.Protect , DrawingObjects:=True, UserInterfaceOnly:=True,
AllowFormattingRows:=True
.EnableSelection = xlUnlockedCells
End With
Next I
End Sub
-----
car j'ai essayé plusieurs choses, et ça ne marche pas.
Merci de votre aide.

YANN

3 réponses

Avatar
Daniel.C
.Protect Password:="toto", DrawingObjects:=True,
UserInterfaceOnly:=True, AllowFormattingRows:=True
Daniel

Bonjour,
comment puis-je ajouter un mot de passe à cette protection ?? :
-----
Sub ProtegerFeuilles() ' Protection de toutes les feuilles d'un classeur
Dim nombre As Integer
nombre = ActiveWorkbook.Sheets.Count
Application.ScreenUpdating = False
For I = 1 To nombre
With Worksheets(I)
.Protect , DrawingObjects:=True, UserInterfaceOnly:=True,
AllowFormattingRows:=True
.EnableSelection = xlUnlockedCells
End With
Next I
End Sub
-----
car j'ai essayé plusieurs choses, et ça ne marche pas.
Merci de votre aide.

YANN


Avatar
FFO
Salut à toi

.Protect ("Password"), DrawingObjects:=True, UserInterfaceOnly:=True,..
......

Celà devrait convenir
Avatar
sunburn
Impec, je te remercie, ça me va bien.
YANN

"FFO" wrote:

Salut à toi

.Protect ("Password"), DrawingObjects:=True, UserInterfaceOnly:=True,..
......

Celà devrait convenir