+ Reply to Thread
Results 1 to 3 of 3

Switchboard in Excel. Password to hide and unhide sheets. User form hangs

  1. #1
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Switchboard in Excel. Password to hide and unhide sheets. User form hangs

    Hi,

    I'm testing out an application where a use of a switchboard is preferred because there are 3 sites.

    There are few issues I'm tackling:

    1) when users open the workbook, they can still see the contents of different worksheets until they manually enable macro. This is not desired.
    2) When the user form pops up, (Main Page), if user from A clicks on button "A", it will bring up an inputbox for password, which is desired. However, if the right password is supplied by user, the program hangs there until user clicks on the "x" mark to cancel out of the "Main Page". This is not desired.

    The code for accessing A is:

    Please Login or Register  to view this content.

    The code for hiding the sensitive sheets are:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    How do I get around this easily? Password is "A" for this test application.

    Can anyone point me in the right direction please?

    Thanks
    Attached Files Attached Files
    Last edited by Lifeseeker; 12-21-2011 at 06:28 PM. Reason: minor updates from the original

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Switchboard in Excel. Password to hide and unhide sheets. User form hangs

    Delete the on close macro and replace it with this.

    Please Login or Register  to view this content.
    And it does not hang for me after changing the code BTW.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Re: Switchboard in Excel. Password to hide and unhide sheets. User form hangs

    Perfect thanks.

+ Reply to Thread

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