Drop Down Button

young engineer

Board Regular
Joined
Mar 3, 2009
Messages
100
Hi All
I want to add a drop down/slider for a particular cell, with a range from 0 to 14, in increments of 0.1.
I am using excel 2007.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi, This is a scrollbar (slider) Control from the "View", Toobars", Control Toobox" Menu.
There may be other ways to do this, but this worked for me.
You can do this with or without a userform.
Code:
Private Sub ScrollBar1_Change()
ScrollBar1.Min = 0#
ScrollBar1.Max = 140#
ScrollBar1.SmallChange = 1
[b1] = Format(ScrollBar1.Value / 10, "0.0")
End Sub
Regards Mick
 
Upvote 0
Another option, make a list somewhere on your sheet of the figures you want in a dropdown

ie 0.1 in aa1; 0.2 in aa2 ; 0.3 in aa3 to 14 etc

Then for the cell you want the the dropdown in, use
Data>Validation>drop "Allow" down to list, then highlight you 0.1 to 14 range (0r use that Range's Name)

Not sure if that is completely clear but.................

Mark
 
Upvote 0

Forum statistics

Threads
1,222,435
Messages
6,166,019
Members
452,008
Latest member
Customlogoflipflops

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