+ Reply to Thread
Results 1 to 2 of 2

More complex sheet hiding

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    58

    More complex sheet hiding

    Hi guys. I asked a question earlier about password protecting some sheets. I managed to get this working but found a problem with it. The sheets were only hidden when macros were enabled. So I needed to find a way of making sure macros were enabled before anyone could do anything. So I found this code which works great (I have removed some of the saving functions to shorten it)
    Please Login or Register  to view this content.
    So now the warning sheet shows on startup, and once macros are enabled, all other sheets show. I had to remove my hidden sheet password code as it didnt work with the above, so now I need a way of getting it back in. When macros are enabled, I need it to display Summary, Filtered Summary and Data Input sheets (not all sheets). Data Input has a button on it which needs code added to it to display the financial sheet if the password is correct.

    Is it possible to get that in with this code above?

    Cheers

  2. #2
    Registered User
    Join Date
    07-11-2013
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: More complex sheet hiding

    I have managed to come up with something that seems to work, just want to clarify if it was ok. So I have the code above, and I defined a new constant for the financial sheet. Then at the bottom of the ShowAllSheets function, I added
    Please Login or Register  to view this content.
    So now when the macro is enabled, it displays all sheets apart from Warning and Financial. So now in my Data Input sheet, I have a button to show all hidden sheets. So I added this code to the button
    Please Login or Register  to view this content.
    And in ThisWorkbook, I added this function for the above
    Please Login or Register  to view this content.
    As I say, it seems to work, just want to make sure it is ok? I dont know if my added code interfers in anyway with the original code? I assume this is provided by Excel, xlSheetVisible, so it is this I dont know if I am doing wrong with the new code?

    Any advice appreciated

    Thanks

+ 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. [SOLVED] Seeking help with complex (to me) job for selectively hiding columns
    By ScotiaSpinner in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-02-2013, 03:08 AM
  2. Complex Micro/Formula to Search from one sheet and Return Value on other sheet
    By atthershabbir in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2012, 12:57 PM
  3. Replies: 3
    Last Post: 12-26-2008, 06:11 PM
  4. Replies: 7
    Last Post: 11-24-2008, 11:46 AM
  5. [SOLVED] Hiding a sheet
    By John Baker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2005, 09:06 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