1 2 3 4 5 6 7 8 9 10
| Public Sub test_protect_avec_copy()
Worksheets("Feuil1").Protect UserInterfaceOnly:=True 'protection de la modification du contenu de la feuille, autorise par macro
Worksheets("Feuil2").Protect UserInterfaceOnly:=True
Worksheets("Feuil1").Range("A1") = 25 'OK ca marche
Worksheets("Feuil1").Range("A1").Copy (Worksheets("Feuil1").Range("A2")) 'OK ca marche
Worksheets("Feuil1").Range("A1").Copy
Worksheets("Feuil2").Range("A2").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
End Sub |
Partager