how to use a scrollbar to select values instantly

Chicken6

New Member
Joined
Dec 30, 2012
Messages
15
Hi,
Is there any way a user can select a spot on the scrollbar and the bar moves there instantly?

I have my scrollbar in place so that the user can answer a question to choose between a digit 0 and 21 (the value goes to cell A1). However you have to click multiple times to get the scrollbar to the desired position. You cannot even use the mouse to move the scrollbar.

Any clues would be appreciated!

(using VBA 14.2.5 on MS Excel for Mac 2011)

Code:
Private Sub ScrollBar1_Change()
Range("A1") = ScrollBar1
End Sub
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Ahhh, figured it out. Go to the properties windows for the scroll bar, and set the delay to 1. The scroll bar goes straight there.

Now for the next problem, and that is that the scroll bar ends up to the right (it's a horizontal scroll bar) of where you click on the scrollbar continuum. The more to the right, the greater the difference between where you click and where the scroll bar ends up.

hmmm... Maybe another thread.

:rolleyes:
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,156
Members
448,948
Latest member
spamiki

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