+ Reply to Thread
Results 1 to 5 of 5

Close Userform

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Close Userform

    Hi there! Is there a way to program a "Done" button for the userform in VB to close automatically without clicking the exit button?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Close Userform

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: Close Userform

    Add this to the DONE commands button after all the action commands.

    HTML Code: 
    This also automatically saves it upon clicking done.

  4. #4
    Registered User
    Join Date
    04-15-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Close Userform

    The program says that unload not optional

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Close Userform

    Try:

    Please Login or Register  to view this content.
    Without the dot.

+ 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. Close Userform from within child Userform
    By contaminated in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2014, 04:24 PM
  2. How to Open 2nd workbook from userform, then close 2nd Userform
    By bigfoot007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 02:03 PM
  3. [SOLVED] How to close a userform. My userform does not close right away.
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2012, 07:34 AM
  4. [SOLVED] userform - close
    By Siegfried in forum Excel General
    Replies: 3
    Last Post: 04-24-2005, 02:06 PM
  5. [SOLVED] UserForm Question:Is it possible to save and close a file via a userform.
    By jer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2005, 08:06 PM

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