Bonjour à tous
J'ai un soucis sur ma macro au niveau de la protection,
Voici ma macro en dessous
Quand je viens chercher mon fichier a copier :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 ThisWorkbook.Unprotect Password:="admin" ChDir ThisWorkbook.Path Workbooks.Open Filename:=Application.GetOpenFilename() Cells.Select Selection.Copy Windows("exemple.xlsm").Activate Sheets("exemple").Visible = True Cells.Select ActiveSheet.Paste Sheets("exemple").Visible = xlSheetHidden ThisWorkbook.Protect Password:="admin"
Et si je fais annuler ma macro s'arrete et mes pages sont de nouveau visible par le biais " Afficher "
Il y a t-il une solutions pour ce problème ?
Merci de vos réponses
Cordialement
Partager