Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Click Event taking time

Excel 2003: I have buttons on a userform which have very simple code
attached. I am finding that clicking from one to the next, the second button
does not fire if I click in modestly quick succession. This will be a pain
to my user, who is trying to enter numbers like clicking on a calculator
pad.

Is there a way to get successive click events to fire more rapidly? For
these buttons, the only activity in the click event is to append the numeric
they clicked to a textbox's value, like the calculator ap.

Thanks.

Bill


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Click Event taking time

Hi Bill,

Probably waiting for a non existent double click event. Try using the
mouseup event.

Private Sub CommandButton1_Mouseup(ByVal Button As Integer, _
ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)

Static i As Long
i = i + 1
Caption = i
End Sub

Regards,
Peter T

"William Benson" wrote in message
...
Excel 2003: I have buttons on a userform which have very simple code
attached. I am finding that clicking from one to the next, the second

button
does not fire if I click in modestly quick succession. This will be a pain
to my user, who is trying to enter numbers like clicking on a calculator
pad.

Is there a way to get successive click events to fire more rapidly? For
these buttons, the only activity in the click event is to append the

numeric
they clicked to a textbox's value, like the calculator ap.

Thanks.

Bill




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Click Event taking time

Works beautifully, a million thanks Peter!
"Peter T" <peter_t@discussions wrote in message
...
Hi Bill,

Probably waiting for a non existent double click event. Try using the
mouseup event.

Private Sub CommandButton1_Mouseup(ByVal Button As Integer, _
ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)

Static i As Long
i = i + 1
Caption = i
End Sub

Regards,
Peter T

"William Benson" wrote in message
...
Excel 2003: I have buttons on a userform which have very simple code
attached. I am finding that clicking from one to the next, the second

button
does not fire if I click in modestly quick succession. This will be a
pain
to my user, who is trying to enter numbers like clicking on a calculator
pad.

Is there a way to get successive click events to fire more rapidly? For
these buttons, the only activity in the click event is to append the

numeric
they clicked to a textbox's value, like the calculator ap.

Thanks.

Bill






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Click event to run only once gavmer[_93_] Excel Programming 0 October 12th 04 12:34 AM
Click event to run only once gavmer[_92_] Excel Programming 1 October 8th 04 07:23 AM
Click event to run only once gavmer[_91_] Excel Programming 0 October 7th 04 12:07 AM
Click event to run only once gavmer[_88_] Excel Programming 1 October 6th 04 12:52 PM
Before Right Click event mohsinb[_8_] Excel Programming 10 December 22nd 03 08:47 AM


All times are GMT +1. The time now is 05:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"