Bonjour Thierry36,
Voici un code, à adapter à ton besoin
Code à placer dans le module de la feuille où se trouve la donnée à copier/coller (Alt+F11 pour ouvrir le projet VBA)
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim MSG As String, MDP As String
Dim Sh As Worksheet
MDP = "1234" 'A adapter : code de protection de la feuille
If Intersect(Target, Range("B5:AA5")) Is Nothing Then
If Target.Value = "" Then Exit Sub
MSG = MsgBox("Voulez-vous copier """ & Target.Value & """ sur la feuille protégée ?", vbExclamation + vbYesNo)
ActiveSheet.Unprotect MDP
Range("AG8").Value = Target.Value
ActiveSheet.Protect MDP
MsgBox "Copier/coller de la cellule ok", vbExclamation
End If
If Intersect(Target, Range("A6:A31")) Is Nothing Then
If Target.Value = "" Then Exit Sub
MSG = MsgBox("Voulez-vous copier """ & Target.Value & """ sur la feuille protégée ?", vbExclamation + vbYesNo)
ActiveSheet.Unprotect MDP
Range("AG10").Value = Target.Value
ActiveSheet.Protect MDP
MsgBox "Copier/coller de la cellule ok", vbExclamation
End If
End Sub