Protection
Fermé
kika
-
28 mai 2015 à 09:32
Excel-worker Messages postés 589 Date d'inscription mardi 7 avril 2015 Statut Membre Dernière intervention 23 juillet 2015 - 28 mai 2015 à 10:02
Excel-worker Messages postés 589 Date d'inscription mardi 7 avril 2015 Statut Membre Dernière intervention 23 juillet 2015 - 28 mai 2015 à 10:02
A voir également:
- Protection
- Sentinel protection installer - Télécharger - Antivirus & Antimalwares
- Rav endpoint protection ✓ - Forum Virus
- Protection cellule excel - Guide
- Vous devez activer la protection du système sur ce lecteur - Forum Windows
- Contourner protection drm captvty ✓ - Forum Montage et acquisition vidéo
3 réponses
Gyrus
Messages postés
3334
Date d'inscription
samedi 20 juillet 2013
Statut
Membre
Dernière intervention
9 décembre 2016
523
28 mai 2015 à 09:53
28 mai 2015 à 09:53
Bonjour,
Deux macros :
Pour protéger
Pour déprotéger
A+
Deux macros :
Pour protéger
Sub Protéger()
Dim Ws As Worksheet
Application.ScreenUpdating = False
For Each Ws In ActiveWorkbook.Sheets
Ws.Protect Password:="Toto"
Next Ws
End Sub
Pour déprotéger
Sub Déprotéger()
Dim Ws As Worksheet
Application.ScreenUpdating = False
For Each Ws In ActiveWorkbook.Sheets
Ws.Unprotect Password:="Toto"
Next Ws
End Sub
A+
Mike-31
Messages postés
18313
Date d'inscription
dimanche 17 février 2008
Statut
Contributeur
Dernière intervention
21 avril 2024
5 073
28 mai 2015 à 09:57
28 mai 2015 à 09:57
Bonjour,
En fin de procédure de Gyrus que je salue, juste avant End Sub ajouter
Application.ScreenUpdating = true
En fin de procédure de Gyrus que je salue, juste avant End Sub ajouter
Application.ScreenUpdating = true
Excel-worker
Messages postés
589
Date d'inscription
mardi 7 avril 2015
Statut
Membre
Dernière intervention
23 juillet 2015
58
28 mai 2015 à 10:02
28 mai 2015 à 10:02
Bonjour,
Autre solution classique, quand tu fais enregistrer sous => outils, options générales => tu met un mot de passe pour la modification.
Cdlt
Autre solution classique, quand tu fais enregistrer sous => outils, options générales => tu met un mot de passe pour la modification.
Cdlt