Salut Biimoxx,
ton fichier avec mes petits changements.
Sub TestAccept()
'
' TestAccept Macro
'
Dim iRow%, iTRow%
'
Application.ScreenUpdating = False
iRow = Selection.Row
Range("A" & iRow & ":F" & iRow).Interior.Color = RGB(110, 175, 70)
'
With Worksheets("Interventions")
iTRow = .Range("A" & Rows.Count).End(xlUp).Row + 1
.Range("A" & iTRow & ":F" & iTRow).Value = Range("A" & iRow & ":F" & iRow).Value
.Range("A" & iTRow & ":F" & iTRow).Borders.LineStyle = xlContinuous
End With
Application.ScreenUpdating = True
'
End Sub
La liste de validation en 'Interventions'-Intervenant- est créée à la demande. Code dans le module VBA de 'Interventions'.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'
Cells.Validation.Delete
If Not Intersect(Target, Columns(8)) Is Nothing Then _
If Target.Count = 1 And Range("A" & Target.Row).Value <> "" Then _
Target.Validation.Add Type:=xlValidateList, Formula1:="=Listes!B2:B" & Worksheets("Listes").Range("B" & Rows.Count).End(xlUp).Row
'
End Sub
A+