Can anyone shed some light on what I might be doing wrong. I have a user form with several fields and I'm trying to use spin buttons where possible to alleviate too much validation. With the code posted below the Date SpinButton works fine but I can't get either of the Time ones to work.
Code
Private Sub SpinButton1_Change()
txtWhen.Value = Format(Date + SpinButton1.Value, "dd-mmm-yy")
End Sub
Private Sub SpinButton2_Change()
txtStart.Value = Format(Time + SpinButton2.Value, "hh:mm")
End Sub
Private Sub SpinButton3_Change()
txtFinish.Value = Format(Time + SpinButton3.Value, "hh:mm")
End Sub
Private Sub UserForm_Initialize()
txtWhen.Value = Format(Date, "dd-mmm-yy")
txtStart.Value = Format(Time, "hh:mm")
txtFinish.Value = Format(Time, "hh:mm")
End Sub
Display More