Thread: Validation
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
unplugs[_6_] unplugs[_6_] is offline
external usenet poster
 
Posts: 1
Default Validation

Thanks for the reply, Charles... Anyway... It cannot help solve m
problem. My codes are as follow:

If TextName.Text = "" Then
MsgBox "You must enter a name."
Exit Sub
End If

If TextHours.Value = "" Then
MsgBox "You must enter a value in working hour."
Exit Sub
Else
If TextHours.Value 8 Then
OT = TextHours.Value - 8
MsgBox "Your OT is," & OT
End If
End If




I want to do the validation so that the TextHours.Value can just accep
the integer numbers only. If user key in alphabet or any sign inside
it will pop up an error msg.

Hope u can help me to solve this problem... THank

--
Message posted from http://www.ExcelForum.com