Bonjour,
Ci dessous une macro pour protéger une ligne si la colonne 5 du tableau est "V" (fichier joint)
Code vba : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim oList As ListObject Set oList = Target.ListObject If Not oList Is Nothing And Target.Count = 1 Then lig = Target.Row - 4 If oList.Range(lig, 5) = "V" Then Target.Offset(, -1).Select End If End If Set oList = Nothing End Sub
Pour approfondir, est il possible qu'il demande un code "1234" par exemple pour modifier la ligne?
Vous comprenez mon idée?
Merci
Partager