Naming the Ticks on a Slide Bar

BrianExcel

Well-known Member
Joined
Apr 21, 2010
Messages
975
I am employing a slide bar in my userform, and rather than create a label for each "tick" I am wondering if there is a way to associate a value for each tick?

For example, if I have three ticks and I want them to be Picture 1, Picture 2, and Picture 3, can I do that?

If so, how? Can it be done via the Properties box or do I have to do within code? If code, can you provide a link or example?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hello,

Here I used Labels, maybe it could give you some ideas:

<font face=Courier New><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> ScrollBar1_Change()<br>Label1.Visible = <SPAN style="color:#00007F">False</SPAN><br>Label2.Visible = <SPAN style="color:#00007F">False</SPAN><br>Label3.Visible = <SPAN style="color:#00007F">False</SPAN><br><br><SPAN style="color:#00007F">Select</SPAN> <SPAN style="color:#00007F">Case</SPAN> ScrollBar1.Value<br>    <SPAN style="color:#00007F">Case</SPAN> 1<br>        Label1.Visible = <SPAN style="color:#00007F">True</SPAN><br>    <SPAN style="color:#00007F">Case</SPAN> 2<br>        Label2.Visible = <SPAN style="color:#00007F">True</SPAN><br>    <SPAN style="color:#00007F">Case</SPAN> 3<br>        Label3.Visible = <SPAN style="color:#00007F">True</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Select</SPAN><br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br></FONT>


Jeff
 
Upvote 0
Thanks Jeff. I was hoping to avoid having to use labels, but it looks like the slide bar doesn't offer captions or labels within the control.

Thanks anyway.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

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