Objet vba

Bulledanslair Messages postés 10 Date d'inscription samedi 21 janvier 2006 Statut Membre Dernière intervention 3 décembre 2008 - 28 janv. 2006 à 16:04
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 - 29 janv. 2006 à 22:19
Bonjour.

Y'a t'il un moyen pour ne pas autoriser un click sur un command button,
et seulement déclencher une procédure sur un double click ?

Merci

5 réponses

ScSami Messages postés 1488 Date d'inscription mercredi 5 février 2003 Statut Membre Dernière intervention 3 décembre 2007 24
28 janv. 2006 à 16:28
Oui, il y a moyen.

Enjoy

<hr size="2" width="100%">
( Si une réponse vous convient, cliquez sur le bouton "Réponse acceptée". )
0
cs_phBil Messages postés 17 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 29 octobre 2006
29 janv. 2006 à 08:54
en utilisant l'événement double clic du bouton

Private Sub CommandButton1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
MsgBox "double click"
End Sub
0
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
29 janv. 2006 à 20:46
désolé il n'y a pas d'évênement _DblClick sur un bouton.









Private Declare Function GetTickCount Lib "kernel32" () As Long



Private Sub Command1_Click()

Static tps As Long

If tps = 0 Then

tps = GetTickCount

Else

If GetTickCount - tps < 250 Then

MsgBox "Double Click"

End If

tps = 0

End If

End Sub


Daniel
0
cs_phBil Messages postés 17 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 29 octobre 2006
29 janv. 2006 à 22:14
ben si en VBA Sous Excel 2000 ... l'événement double clic existe !!!

Phbil
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
29 janv. 2006 à 22:19
ha bon

alors où est le problème ?

Daniel
0
Rejoignez-nous