Re: spinButton problem
Problem solved.
Found the following code on MrExcel
Code
Private Sub SpinButton1_SpinDown()
If TextBox1 = vbNullString Then
TextBox1 = "00:00"
Else
TextBox1.Value = Format(DateAdd("n", -1, TextBox1.Value), "hh:mm")
End If
End Sub
Private Sub SpinButton1_SpinUp()
If TextBox1 = vbNullString Then
TextBox1 = "00:00"
Else
TextBox1.Value = Format(DateAdd("n", 1, TextBox1.Value), "hh:mm")
End If
End Sub
Display More