Set Min = 0 and Max = 9 for both spin buttons and insert the following code. Here SpinButton1 controls the whole number part and SpinButton2 controls the decimal part.
___
Private Sub SpinButton1_Change()
Text1 = SpinButton1 & "." & SpinButton2
End Sub
Private Sub SpinButton2_Change()
SpinButton1_Change
End Sub
This allows it to go up to 9.9. Is there a way to allow it to go up to 10.0 max? Changing spin1.max to 10 still allows for 10.9. Or, is there a way to tell if the user clicks the up or down of the spinbutton?
Yes you can change the Max value of SpinButton1 to the desired maximum value; and there are two events, SpinUp and SpinDown which tell if the user spins the button up or down.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.