Bonjour le forum
le problème semble venir de ce code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A2")) Is Nothing Then
Calendrier.Show
End If
End Sub
Avec l'actuel code, je n'ai pas ce problème:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Me.Range("A2")) Is Nothing Then Calendrier.Show
Cancel = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Selection.Cells.Count = 1 Then
If Not Intersect(Target, Me.Range("A2")) Is Nothing Then
If CalendrierOK <> True And Target.Value <> "" Then
Target.Value = ""
MsgBox ("Vous devez double-cliquer sur cette cellule pour la compléter.")
Target.Select
End If
End If
End If
If Not Intersect(Target, Range("A13:A22")) Is Nothing Then
Call validation
End If
End Sub
Je souhaitais éviter le double click!
Merci pour vos pistes de solutions.