+ Reply to Thread
Results 1 to 9 of 9

Disabling Tabs (REALLY disable)

  1. #1
    Forum Contributor
    Join Date
    07-19-2019
    Location
    Illinois, USA
    MS-Off Ver
    365
    Posts
    164

    Disabling Tabs (REALLY disable)

    I know about hiding the tabs under "Advanced Options" but anyone who comes along behind me that knows how to, can reverse that. I tried "locking" the workbook, but it still doesn't remove the option.

    Any creative solutions for this that you're aware of? I don't want people being able to "unhide" tabs, I want access to certain tabs locked down to only be accessible with a password (ill use a userform for the password)

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Disabling Tabs (REALLY disable)

    https://docs.microsoft.com/en-us/off...e-xlveryhidden

    and then lock down your VBA with a password.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Disabling Tabs (REALLY disable)

    What option under "Advanced Options" has to do with hiding tabs?

    If you lock the workbook with a password and check Structure then hidden sheets cannot be unhidden by a user.

    Another possibility is to go into the VBA window, which you probably know how to do since you are talking about creating a UserForm, and set the visibility of a sheet to VeryHidden. This means that a user cannot even see that the sheet exists. But then you will have to put a password on the VBA.

    I don't know why you need to hide this sheet but please be aware that any of the above are not very secure, and neither is your method of using a password from a UserForm. These methods will discourage a compliant user but not a motivated malicious user. If you have a bona fide security issue you will need to use something not built into Excel.

    There are also Excel "compilers" that may add a measure of security but I can't vouch for it.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Disabling Tabs (REALLY disable)

    To add to Alan's suggestion, you really need to lock and hide formulae on the visible sheets and protect them with a password so that users can't intuit that there are other sheets.

    And then you need to protect your VBA Project with a password so they can't see the structure under the covers.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Disabling Tabs (REALLY disable)

    @6SJ: I’m not a "motivated malicious user" but I do tend to be intrigued by what's under the covers and would invariably pry the bonnet up

  6. #6
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Disabling Tabs (REALLY disable)

    VBA code in ONE workbook can be used to attack protections in OTHER workbooks. Password protected VBA projects don't protect the whole workbook.

    Also, it just ain't that difficult to defeat ALL internal protections in Excel workbooks. I'm not going to go into how-to, just going to say that file-open passwords are the only robust security Excel provides. Everything else is only effective against innocent curiosity. Best to keep that in mind when deciding what should go into Excel workbooks, and who should be able to open those Excel workbooks.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Disabling Tabs (REALLY disable)

    ... I'm not going to go into how-to ...
    l think you probably just did, or at least gave a big hint

  8. #8
    Forum Contributor
    Join Date
    07-19-2019
    Location
    Illinois, USA
    MS-Off Ver
    365
    Posts
    164

    Re: Disabling Tabs (REALLY disable)

    I'm not worried about a malicious user - just more a curious wanderer... I'm aware if someone WANTS to get in, they will, but as with most things, curiosity will end up creating more work for me, as people "poke around" and screw things up.

    xlVeryHidden & password protecting VBA seems to be exactly what I'm looking for - thank you all for the feedback!

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Disabling Tabs (REALLY disable)

    I fear that, with all things Excel, ...
    people "poke around" and screw things up.

+ 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. How can I disable multiselection of tabs in excel
    By srinu1264 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-07-2015, 09:07 PM
  2. [SOLVED] Disable exit on selected tabs
    By RANDY LIPOSKY in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2015, 01:53 AM
  3. Disable Selecting Tabs
    By faboualfa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2009, 04:08 PM
  4. Disable Customize toolber tabs
    By areddy in forum Excel General
    Replies: 4
    Last Post: 10-21-2005, 07:33 AM
  5. [SOLVED] Disabling disable macros
    By Ram in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2005, 02:05 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