+ Reply to Thread
Results 1 to 4 of 4

Text box Exits running when form closes - can this be presented

  1. #1
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Text box Exits running when form closes - can this be presented

    Is there a way to prevent all of the textbox exit procedures from running when I unload a form?

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Text box Exits running when form closes - can this be presented

    Hi Bruce,

    Unfortunately, there is no Application.EnableEvents equivalent for UserForms. You can however create your own. The following code had not been tested.

    In an ordinary code module:
    Please Login or Register  to view this content.
    In the UserForm module, for each Event that you may want inhibited you need code like:
    Please Login or Register  to view this content.
    I hope this helps.

    Lewis

  3. #3
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Re: Text box Exits running when form closes - can this be presented

    Well, on one hand that sure was a PITA, but on the other, the best solution available; Thank-You for coming to my help!!!

  4. #4
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Re: Text box Exits running when form closes - can this be presented

    In my roughly 36 years of dabbling with Excel & prior Lotus, I never ventured into Class Modules. Would something like what is presented here have been a possible option?

+ 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. write a macro to fill text only if a certain value exits in another cell
    By Nirmall in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-31-2015, 02:52 PM
  2. [SOLVED] macronot running until userform closes
    By Learning ExL in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-04-2015, 02:04 AM
  3. Excel stops responding to the keyboard after a form closes
    By neilbro in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-12-2014, 12:00 PM
  4. User Form closes prematurely
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-24-2011, 08:24 PM
  5. VBA in Word opens, closes Excel app but process still running in Task Manager
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 02-16-2011, 09:10 AM
  6. .Hide closes the form?
    By marlonsaveri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2011, 01:47 PM
  7. Error occurs, excel closes when running macro?
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2008, 06:45 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