+ Reply to Thread
Results 1 to 2 of 2

Texbox exit event prevents userform exit

  1. #1
    Registered User
    Join Date
    07-26-2014
    Location
    Brussels
    MS-Off Ver
    MS Office 2010
    Posts
    22

    Texbox exit event prevents userform exit

    Hello, I have a userform with a mandatory textbox. Default value of this textbox is "ID". To force the user to enter an ID number in this textbox I'm using following code:

    Please Login or Register  to view this content.
    This works well but has an unwanted consequence: if the user clicks the form's exit button, he's trapped into the textbox exit event. The only way to get out of this is CTRL+BREAK command.

    Please Login or Register  to view this content.
    Is there a workaround ? Thanks !

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Texbox exit event prevents userform exit

    dupe to http://www.excelforum.com/excel-prog...-userform.html
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Textbox exit event prevents to exit userform
    By smjjvh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2014, 06:08 AM
  2. [SOLVED] Userform multipage control - exit event not firing or event order
    By jane serky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2013, 10:23 AM
  3. UserForm TB exit event
    By Jockster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2010, 02:36 PM
  4. Userform Textbox Exit Event to Run Application
    By baisty182 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2010, 12:30 PM
  5. Close UserForm despite Exit Event
    By Carim in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2005, 01:08 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1