phillipclark
Board Regular
- Joined
- Sep 10, 2013
- Messages
- 65
Greetings All,
My Question today is how do I set a min and max for a Spin Button within my VBA Code below.
The code I am using currently to increment .1 changes. This is working fine but now it will
be necessary to limit the amount a person can change with the SpinButton.
Thank you in advance for your help
My Question today is how do I set a min and max for a Spin Button within my VBA Code below.
The code I am using currently to increment .1 changes. This is working fine but now it will
be necessary to limit the amount a person can change with the SpinButton.
Thank you in advance for your help
Code:
Private Sub SpinButton2_SpinDown()
Worksheets("Sheet2").Range("U51").Value = Worksheets("Sheet2").Range("U51").Value - 0.1
End Sub
Private Sub SpinButton2_Spinup()
Worksheets("Sheet2").Range("U51").Value = Worksheets("Sheet2").Range("U51").Value + 0.1
End Sub