Private Sub Worksheet_SelectionChange(ByVal R As Range)
If Not Intersect(R, Range("h7:h20000")) Is Nothing Then Exit Sub
If Not Intersect(R, Range("G7:G20000")) Is Nothing And R.Count = 1 Then
flag = True
If MsgBox("Je téléphone = OUI - SINON = NON", vbQuestion + vbYesNo) <> vbNo Then
R.Offset(0, 6) = ""
R.Offset(0, 7) = ""
R.Offset(0, 8) = ""
R.Select
Selection.Copy
flag = False
End If
End If
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal R As Range, Cancel As Boolean)
flag = True
If Not Intersect(R, Range("h7:h20000")) Is Nothing Then
If MsgBox("Je téléphone = OUI - SINON = NON", vbQuestion + vbYesNo) <> vbNo Then
R.Offset(0, 5) = ""
R.Offset(0, 6) = ""
R.Offset(0, 7) = ""
R.Select
Selection.Copy
flag = False
End If
End If
Cancel = True
End Sub