Reset spin button (form control) when new selection made from Combo box

dashboardrookie

New Member
Joined
Aug 19, 2016
Messages
2
Hi All,

I have tried searching numerous forums to help, on what I am hoping is an easy solution!

I am creating a dashboard and have a combo box driving cells in my dashboard. One of which is a cell which contains a summary of text.
I have created a spin button which allows you to scroll through the text as I have a limited space and would like the user to be able to scroll through all the text from the field.
This works great, however, when a new selection is picked from the combo box, the spin button value stays where it was last scrolled to.

Is there a way to reset the spin button to 0 each time a new selection is made in the combo box?

I have linked the Combo Box to C3 and spin button to A15. I have tried the below code, however it only works when I manually type a number in C3, it doesn't automatically change when the cell changes from the new selection.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("c3").Address Then
Range("a15").Value = ""
End If
End Sub

Thank you for your help!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try this:

Code:
Private Sub ComboBox1_Change()
SpinButton2.Value = 0
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,208
Members
448,874
Latest member
Lancelots

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