+ Reply to Thread
Results 1 to 3 of 3

Hide Worksheet Macro shows data before password prompt

  1. #1
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Hide Worksheet Macro shows data before password prompt

    Just getting my feet wet with Macros, need some help with one I found on the web.

    I use a macro that hides data on a worksheet yet keeps that sheet tab visible. When I need to access the tab, it prompts for a password. See attached sample file. Password is "password" (no quotes).

    Works well but when I click on the tab of the 'hidden sheet' the data flashes on screen momentarily as the password prompt appears. Worse yet, if you click and hold on the 'hidden sheets' tab, the data stays visible until your release the mouse button.


    How do I get the data to NOT appear when accessing the hidden sheet?

    Here's what we have:

    Please Login or Register  to view this content.

    Thanks, Steve

    Macro Credit to Mike H, at
    <http://answers.microsoft.com/en-us/office/forum/office_2003-excel/hiding-a-spreadsheet-within-a-workbook/1159ad78-ca37-4bf7-83a4-ab87667c994f>
    Attached Files Attached Files
    Last edited by Steve N.; 12-01-2012 at 06:17 PM. Reason: Added code tags, as per forum rules. Don't forget!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Hide Worksheet Macro shows data before password prompt

    This is a little different but I think it does what you want. It hides columns A:Z on Sheet1 until the password is entered.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 12-01-2012 at 05:18 PM.

  3. #3
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Hide Worksheet Macro shows data before password prompt

    Excellent! Thank you, Alpha.

+ 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