+ Reply to Thread
Results 1 to 7 of 7

Show userform and hide workbook

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Show userform and hide workbook

    Hi,

    i am using code to hide workbook and show suerform "Kalkulator":

    Please Login or Register  to view this content.
    working.

    on form i am using button to bring back workbook with code:

    Please Login or Register  to view this content.
    but this is bringing back 2 instances of excel (Excel and Kalkulator.xlsm where my macros and userform is):
    Screenshot_12.png

    one empty, second one with my macros.
    What is causing that?

    Please help,
    Jacek

  2. #2
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Show userform and hide workbook

    Anyone?

    Best Wishes,
    Jacek Antek

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,806

    Re: Show userform and hide workbook

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Show userform and hide workbook

    Hi Mumps1,

    thank you, working but this one:

    Application.WindowState = xlMinimized is minimilizing, not hiding whole Excel app like this one:

    Application.Visible = False.

    So second one is correct (hiding whole Excel) but how to unhide application and go back to my Kalkulator.xlsm.

    Best,
    Jacek
    Last edited by jaryszek; 02-18-2019 at 04:28 AM.

  5. #5
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Show userform and hide workbook

    I tried also with:

    Please Login or Register  to view this content.
    but this is not working.

    Please help,
    Jacek

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Show userform and hide workbook

    Ok this seems to work:

    Please Login or Register  to view this content.
    and in form terminate event:

    Please Login or Register  to view this content.
    But this is working great when i have one Excel opened. When i have 2 instances there is a problem because i am hiding all Excel app - this can be annoying when you were calculating something and want to open my excel with form.
    Can you help?

    How to count instances of Excel and check if i can minimize whole Excel app or only one instance of opened Excel?

    Best,
    Jacek
    Last edited by jaryszek; 02-18-2019 at 05:55 AM.

  7. #7
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Show userform and hide workbook

    I am closing topic

+ 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. Hide ACTIVE WORKBOOK and show userform. Show ACTIVE WORKBOOK with cmdbutton.
    By angeliquep25 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2017, 09:53 AM
  2. UserForm Show/Hide Subroutine Sequencing
    By thesonofdarwin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2017, 06:11 PM
  3. How to hide Excel but show the Userform only
    By samipm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2015, 12:06 AM
  4. I'm trying to hide my worksheet but have a userform show at startup
    By simeonmein in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2013, 03:29 PM
  5. [SOLVED] How to Show Userform and Hide Workbook/Worksheet
    By ays_punk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-29-2013, 01:02 PM
  6. Userform show / hide problem
    By brookly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2006, 05:50 PM
  7. [SOLVED] Show/Hide Userform erases global vriables
    By Dave D-C in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2005, 07:10 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