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

Thread: Cancel exit event execution

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

    Default

    How can I cancel a code execution attached to an exit event of a texbox.

    I want the focus to remain on the textbox which originated the exit event.

    Tks

  2. #2
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi

    Do you mean:


    Code:
    Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
       If Not IsNumeric(TextBox1.Value) Then
               MsgBox "Only Numbers Please"
       End If
    End Sub

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
  •