View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Henry[_4_] Henry[_4_] is offline
external usenet poster
 
Posts: 72
Default Time Format & Unload problem

Rod,

If 'Verify that all fields have been filled in' then
'Act on your data
Unload Me
Else
Msgbox "Not all fields have been completed." & Chr(13) & _
Complete ALL fields and click the OK button again"
End If
End Sub

HTH
Henry


"Rod Taylor" wrote in message
...
I have a Textbox that is used for a Time Input
I want the user to only be allowed to enter the info in the right format
I.a. 12:30 I think the part that is important is the : in the middle.

Also when the user clicks the command button An if statement is run to
verify that all fields have been filled in. If not then a msgbox comes up
stating that all info must be filled in.
The problem is when the msgbox is closed then the unload me is run and the
info that was put in is acted on
I fixed that by making all variables = "" However the form still

closes
and needs to be run again.

Is their a way to allow the user to fill in the remaining boxes if the if
statement is true. Or is there another way

Thanks Rod Taylor