Results 1 to 7 of 7

Maximize Userform on Workbook Active

Threaded View

  1. #1
    Registered User
    Join Date
    04-02-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    62

    Maximize Userform on Workbook Active

    Hi Guys,

    I have a UserForm that automatically displays when a Workbook opens; the userform allows the user to create 2 new workbooks from the data they have entered. Unfortunately, the user can't select the new workbooks without closing the Userform. For this reason, I have added a minimize button to the userform:
    Private Sub CommandButton24_Click()
    frmMain.Hide
    Application.WindowState = xlMinimized
    End Sub
    However, when the user reselects the workbook the userform doesn't show again and they are able to see the sheets behind it. Would it be possible to redisplay the userform if the workbook becomes active again. I have tried this code but it doesnt seem to work:

    Private Sub Workbook_Activate()
    frmMain.Show
    
    End Sub

    Thanks in advance for your help.
    Last edited by savio21; 12-06-2011 at 03:01 PM.

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