Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Validate Userform

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have a text box on a user form how do I make sure the only type of text that can be entered is numerical?

  2. #2
    New Member
    Join Date
    Mar 2002
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    also how do I get an error message to appear if a text box is empty

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Where the wild roses grow
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Regarding the message if it's empty, tyou could try:

    If Textbox1 = "" Then
    MsgBox "Field must be answered before you can proceed"
    Exit Sub
    End If

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •