+ Reply to Thread
Results 1 to 2 of 2

UserForm change function of close (X) button

  1. #1
    Registered User
    Join Date
    09-15-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2016
    Posts
    33

    UserForm change function of close (X) button

    Hey guys I want to change the function of a password userform to close a workbook, I've tried the following to no avail:

    Please Login or Register  to view this content.
    I don't want it to just close the userform as I've read in various articles, I need it to close the workbook - or alternatively have it disabled!

    Please help

    Thanks
    Last edited by mkachwee; 10-12-2012 at 12:52 PM.

  2. #2
    Registered User
    Join Date
    09-15-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2016
    Posts
    33

    Re: UserForm change function of close (X) button

    Found a nifty solution, had a cmdCancel button which closes the userform if clicked

    All I had to do was call the cmdCancel_Click routine when the X button is clicked:

    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