+ Reply to Thread
Results 1 to 4 of 4

VBA Menu userform stays up hidden workbook

  1. #1
    Registered User
    Join Date
    07-30-2020
    Location
    Loveland, Colorado
    MS-Off Ver
    Office 360 ProPlus
    Posts
    3

    VBA Menu userform stays up hidden workbook

    I created a userform that is a menu that has a command button for each sheet in the workbook.

    I entered the code below and have gotten it where the menu will open with the workbook staying hidden however, even you click on the command button nothing happens. I need it to open the selected sheet so it can be edited while still keeping the menu open.

    I've searched through other posts on multiple sites and can't find a solution to make it work better.


    Please Login or Register  to view this content.
    Last edited by RealJoshTodd; 08-17-2020 at 09:20 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Menu userform stays up hidden workbook

    Hi

    I wish i could help you here.

    Unfortunately you have not complied with the forum rules. Hopefully a moderator will insert the code tags for you as you are a new member.

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)






    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    07-30-2020
    Location
    Loveland, Colorado
    MS-Off Ver
    Office 360 ProPlus
    Posts
    3

    Re: VBA Menu userform stays up hidden workbook

    Sorry about that, and sorry for the delay. I updated the original question

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Menu userform stays up hidden workbook

    1. I would Make the Caption of Each CommandButton the Sheet Name.

    Please Login or Register  to view this content.
    2. If you have a Contents or an Index Sheet. ( One Sheet Must Be Visible )
    Then you can make all sheets Invisible.

    Please Login or Register  to view this content.
    3. Create a subroutine to hide all sheets except the and then open the sheet you want:

    Please Login or Register  to view this content.

    4. Create a Subroutine for each command button to call "HideSheets" when it is pressed.

    This Macro will do that for you:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 08-18-2020 at 01:01 PM.

+ 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. HIDDEN WORKBOOK? Excel Workbook Closes after Userform Submits
    By maraecole3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2019, 10:41 AM
  2. Replies: 11
    Last Post: 07-07-2017, 10:46 AM
  3. [SOLVED] Need a macro that opens another workbook but stays in current workbook
    By shoes1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-28-2015, 08:44 PM
  4. Keep Application hidden when Userform and Workbook gets closed
    By knineistheboss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2014, 06:09 PM
  5. [SOLVED] Closing a workbook with the menu hidden
    By grumpyguppy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2014, 06:41 AM
  6. UserForm stays active when print preview is opened
    By brandonduginski in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2013, 01:03 AM
  7. VBA Function Vlookup data from Hidden sheet in hidden workbook
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2008, 11:22 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