Changing text timeline slider

Kryswills

New Member
Joined
Jul 22, 2016
Messages
3
Hi

I have a project needing different text messages to appear depending on where I move a slider. This would be over a 17 day period. Is that possible?

Thanks
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Roderick_E

Well-known Member
Joined
Oct 13, 2007
Messages
2,051
what do you mean by slider? But typically yes, you could display a text message based on criteria
 

Kryswills

New Member
Joined
Jul 22, 2016
Messages
3
Hi.

I was hoping for a bar numbering days 1-17. Beneath the bar a curser or similar that when moved left to right will display a different text message depending on where in the timeline the curser is.

Hope that makes sense.
 

Roderick_E

Well-known Member
Joined
Oct 13, 2007
Messages
2,051
In your dataset if you add a column for this, you could pivot your data then add a "slicer" (insert slicer). As the user selects, display messages.
 

thisoldman

Well-known Member
Joined
Jan 5, 2014
Messages
1,074
The text list is in cells G4:G20. From the developer tab I inserted a Form Control Scroll Bar. I formatted the scroll bar with:

4QELFlD.png


The Scroll Bar controls cell E3.

I used an INDEX formula in cell B4 to retrieve the text. Download available at:
https://www.dropbox.com/s/slavlj18dxv166m/scroll_bar_to_change_text.xlsx?dl=0

DQ4YU3I.png
 

Roderick_E

Well-known Member
Joined
Oct 13, 2007
Messages
2,051
alt + F11 to enter macro editor. Paste this in:

Code:
Sub scrollbar1_change()
Dim scbval As Long
scbval = ActiveSheet.Shapes("Scroll Bar 1").ControlFormat.Value
Range("J3") = Range("G1").Offset(scbval + 2, 0) 'change J3 to whatever cell you want to show message, even can be on another sheet.
End Sub

Then right click the actual scrollbar and assign macro to scrollbar1.
Use scrollbar and see dynamic messages based on scrollbar value.
 

Forum statistics

Threads
1,186,165
Messages
5,956,330
Members
438,247
Latest member
UZev

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
Top