+ Reply to Thread
Results 1 to 4 of 4

Quit on Error

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    Monterrey,Mexico
    MS-Off Ver
    Excel 2003
    Posts
    38

    Quit on Error

    Hi,

    I have a Userform that seems to be working ok so far but I have 2 issues.

    1) Whenever I close the userform, I would like for excel to quit. This way, if a user tries to close it like closing a window, rather than using the exit button it wonīt send him to VBA.

    2) If any error occurs while using this userform, I would like for excel to quit.

    Hope you can help.

    Thanks in advance.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Quit on Error

    Why. That's extreme any other workbooks would be closed possibly losing work.

    Closing a userform will not open the VB Editor
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-07-2010
    Location
    Monterrey,Mexico
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Quit on Error

    I just donīt want for regular users to see other things besides the userform.

    is that possible?

    thanks

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Quit on Error

    That's not what you asked. You need to be very careful hiding the application if anything goes wrong then the user ends up running an invisible instance of Excel

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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