+ Reply to Thread
Results 1 to 4 of 4

How do I disable the cancel button for a userform?

  1. #1
    Registered User
    Join Date
    05-20-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    21

    How do I disable the cancel button for a userform?

    This is not related to the worksheet, the user can still close, minimize, whatever the sheet itself, I just don't want them to exit out of the userforms that popup without choosing an option. Any help would be appreciated. Thanks ^^
    Last edited by Evalis; 07-14-2010 at 05:09 PM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How do I disable the cancel button for a userform?

    Do you mean the X in the top right corner, or a Cancel button that you have added?
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    05-20-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: How do I disable the cancel button for a userform?

    the x in the top right corner...

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How do I disable the cancel button for a userform?

    Add the following to the form's code - it will cancel any attempt to close using the X:
    Please Login or Register  to view this content.

+ 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