Maybe:
If LCase(Trim(Me.TextProjectName.Text)) Like "[a-z]##-###" Then
Me.Label1.Caption = "ok"
Else
Me.Label1.Caption = "not ok"
End If
"unplugs <" wrote:
Thanks a lot Mangesh and David McRitchie... I'm able to work on the
validation for integer part.
How about the first case? If I want to do validation for Project Name,
that it must be enter like this: ?##-####
? = alphabet
#= integer
Anyone got any idea?
---
Message posted from http://www.ExcelForum.com/
--
Dave Peterson