View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
unplugs[_9_] unplugs[_9_] is offline
external usenet poster
 
Posts: 1
Default How to do validation ???

Mangesh:

I add IsNumber(x) inside my code as follow:


If TextHoursSpent.Value = "" Then
MsgBox "You must enter your hours spent."
Exit Sub
Else
If TextHoursSpent.Value < IsNumber(x) Then
MsgBox "You must enter an integer. "
Exit Sub
End If
End If


But it gave me a compile error message which is "Sub or Function no
define"... I'm still new in vba... Probably u can guide me on this..?

Thanks a lot... and hope I can hear from anyone that know the solutio
for the 2 features above that I mention.

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