Bonjour,
En définissant une plage préalablement, puis l'Intersect?
VB:
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
Bonjour,
En définissant une plage préalablement, puis l'Intersect?
VB:
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