Fetching a DblClick over a SpinButton is possible?

Bub

New Member
Joined
Mar 9, 2009
Messages
2
Hello, as the DblClick Event is apparently not defined for a SpinButton in Excel 2003, I was wondering if some relatively simple code exists or trick exists to do so? I'd like to set the reset the spinvalue to the min value or max value when double clicking over the corresponding arrows of the spin.
Many Thanks In Advance. PS: My first post!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I think there is a good reason for there not being a double-click event: it would make it very difficult to click quickly up or down the scale, which a user might want to do!
If you really wanted it, you could probably store the time and spin direction in variables outside the spinup and spindown events and then within each check the direction and current time - if the direction is the same as the stored value and the time is within a short interval of the last time, then run your 'double-click' code, otherwise do the normal spin code.
 
Upvote 0
Looks to me to be a reasonable and appealing work-around. Thank you Rory for this fast reply. Much appreciated.
Alain (alias Bub)
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top