Results 1 to 15 of 15

Code a Command Button on UserForm not to close upon click - Excel VBA

Threaded View

  1. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646
    Me.Hide doesn't close the userform it hides it.

    You don't need that code anywhere.

    To close the form you need to add another button outside the frame.

    Then you can use this code to close the form.
    Private Sub cmdClose_Click()
        Unload Me
    End Sub
    Last edited by Norie; 12-14-2012 at 10:08 AM.
    If posting code please use code tags, see here.

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