+ Reply to Thread
Results 1 to 2 of 2

Hide ACTIVE WORKBOOK and show userform. Show ACTIVE WORKBOOK with cmdbutton.

  1. #1
    Registered User
    Join Date
    09-07-2017
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft Office 2016
    Posts
    1

    Exclamation Hide ACTIVE WORKBOOK and show userform. Show ACTIVE WORKBOOK with cmdbutton.

    Hi all,

    I've created a Userform which I want to show as it's own stand alone application. However, when I hide Excel, it hides all other Excel workbooks as well. I only want to hide the Workbook associated with the Userform.

    So far I've tried:

    Thisworkbook.visible = false
    userform1.show

    It works, but when clicking on my commandbutton to show the workbook again, it only shows an empty Excel - no worksheet at all.

    I want the workbook and worksheet to be visible when clicking the command button.

    Please help! I will be forever grateful.

  2. #2
    Registered User
    Join Date
    10-12-2015
    Location
    Bristol, UK
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Hide ACTIVE WORKBOOK and show userform. Show ACTIVE WORKBOOK with cmdbutton.

    To show the form and hide the workbook:

    Please Login or Register  to view this content.
    To close the form and show the workbook again (add code to the button on the form):

    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)

Similar Threads

  1. Show Userform Behind Active Windows
    By gsurge in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-02-2021, 01:00 AM
  2. Open Another Workbook from Active Workbook but stay on Active Workbook.
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2014, 06:33 AM
  3. [SOLVED] Code to detect previous active workbook instead of current active workbook
    By kosherboy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-25-2014, 01:58 AM
  4. [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
  5. VBA macro for hyperlink to active workbook in the active workbook path
    By Scott Taylor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2013, 05:37 AM
  6. Open userform and hide active workbook only
    By occhibei in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-22-2013, 04:55 PM
  7. How to show a related Userform depending on the Active Cell value
    By chamdan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2010, 09:18 PM

Tags for this Thread

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