Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Plg As Range
If Target.CountLarge > 1 Then Exit Sub
Set Plg = Union(Range("A8"), Range("A12"), Range("A18"))
If Not Intersect(Plg, Target) Is Nothing Then UserForm1.Show
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Me.[A8;A12;A18], Target) Is Nothing Then UserForm1.Show False
End Sub
Merci pour ton aide !Bonjour,
En définissant une plage préalablement, puis l'Intersect?
Bon appétitVB:Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim Plg As Range If Target.CountLarge > 1 Then Exit Sub Set Plg = Union(Range("A8"), Range("A12"), Range("A18")) If Not Intersect(Plg, Target) Is Nothing Then UserForm1.Show End Sub