A
art
Hello:
I need help adding a min to a spinner. I want to add to the code that the
spinner should not go below 0, that means it should not go -1, -2, -3 and so
on. Below is the vba code I have for the spinner button:
Sub Button1_Click()
'
' Button1_Click Macro
'
'Private Sub SpinButton1_SpinDown()
ActiveCell.Value = ActiveCell.Value - 1
End Sub
Private Sub SpinButton1_SpinUp()
ActiveCell.Value = ActiveCell.Value + 1
SpinButton.Min ["=5"]
End Sub
I need help adding a min to a spinner. I want to add to the code that the
spinner should not go below 0, that means it should not go -1, -2, -3 and so
on. Below is the vba code I have for the spinner button:
Sub Button1_Click()
'
' Button1_Click Macro
'
'Private Sub SpinButton1_SpinDown()
ActiveCell.Value = ActiveCell.Value - 1
End Sub
Private Sub SpinButton1_SpinUp()
ActiveCell.Value = ActiveCell.Value + 1
SpinButton.Min ["=5"]
End Sub