En fait ma question :
le code doit être répété pour chaque textbox et combo-box?
Private Sub TextBox1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
' L'événement MouseDown s'exécute 2 fois sur click droit !!!
Static Click As Integer: Click = Click + 1
If Not Click Mod 2 = 0 Then Exit Sub
If Button = 2 Then
Modifier_Menu_Contextuel
Application.CommandBars("Cell").ShowPopup
Restaurer_Menu_Contextuel
End If
End Sub
Private Sub TextBox2_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
' L'événement MouseDown s'exécute 2 fois sur click droit !!!
Static Click As Integer: Click = Click + 1
If Not Click Mod 2 = 0 Then Exit Sub
If Button = 2 Then
Modifier_Menu_Contextuel
Application.CommandBars("Cell").ShowPopup
Restaurer_Menu_Contextuel
End If
End Sub
Private Sub ComboBox2_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
' L'événement MouseDown s'exécute 2 fois sur click droit !!!
Static Click As Integer: Click = Click + 1
If Not Click Mod 2 = 0 Then Exit Sub
If Button = 2 Then
Modifier_Menu_Contextuel
Application.CommandBars("Cell").ShowPopup
Restaurer_Menu_Contextuel
End If
End Sub
Si on pouvait coder un seul bloc pour tous les textbox et combo-box dans l'USF
Cordialement Jean