parry
MrExcel MVP
- Joined
- Aug 20, 2002
- Messages
- 3,355
Hi, I have a textbox on a form that has the system time entered as a default value via the UserForm_Activate event...
txtTime.Text = Format(Time, "hhmmss")
Im allowing Users to overtype this with their own time but if they enter an incorrect time then runtime err 13 Type Mismatch appears.
Whats the easiest way of preventing incorrect times being entered into the textbox so I avoid the runtime error.
thanks
txtTime.Text = Format(Time, "hhmmss")
Im allowing Users to overtype this with their own time but if they enter an incorrect time then runtime err 13 Type Mismatch appears.
Whats the easiest way of preventing incorrect times being entered into the textbox so I avoid the runtime error.
thanks