+ Reply to Thread
Results 1 to 12 of 12

2 Levels of Security

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    new orleans
    MS-Off Ver
    Excel 2010
    Posts
    5

    2 Levels of Security

    In my company I have to divide up our expense reports by Cost Center. It would be easier to just send everything out in individual workbooks but the higher executives do not want to sort through 10 different ones. Is there a way I can create a login and password that directs you to what you are allowed to look at. We have 10 different cost centers and I need to create one for each of those groups that only allows them to view only their page. Then there is the executives and presidents that need to be able to view the entire workbook. I created one where people could put a password in at each page but it displayed the information on the page in the background. Is there something else that I could use with a step by step process on how to create the two different levels of access.


    Please Login or Register  to view this content.
    This is what I used previously but like I said this information displayed when you clicked on each page is not going to work. Also the executives do not want to type in a password at each page.


    Thank you in advance for your help

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: 2 Levels of Security

    Hello slaterm4,

    Could you please post a sample Workbook, explaining exactly what you require where, and we will see how best to assist you?

    Regards
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    new orleans
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: 2 Levels of Security

    It is a workbook with 10 different tabs one for each of our cost centers. I need to create a login that will take each of those 10 groups to their designated tab. I also need a login or someway to have the executives be able to access the entire workbook without having to type each cost center's password in. It does not even have to be a login just a way so each cost center cannot look at the other groups and the executives can look at all. I cannot post my companies confidential information on here. Is there even a way to do this?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: 2 Levels of Security

    How bad is it if a non-authorized person can access any sheet in the workbook? If the answer is 'very bad', Excel is not the tool for you.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    10-22-2013
    Location
    new orleans
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: 2 Levels of Security

    No it's not bad at all. I would just like to know if I can build something like I asked above to give access at different levels and if I can build a macros for that. The reason I am not posting an example of my companies reports on the internet is they are for company personel's eyes only. These reports are only seen by the manger of each cost center. I would send it out to all but am trying to prevent a person from going into a other tab and viewing. If our employees are able to disable and delete the macros we can figure something else out but at this time we would like to attempt this. Two levels one to view the entire workbook then 10 sepeparte entries to view one tab at a time. Security and other issues aside is there a macro to do this so we can build it and try it out and see if our executives are satisfied?

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: 2 Levels of Security

    Hello slaterm4,

    I echo what shg's concerns are. If anyone would open your Excel Workbook in Open Office, Front Desk, or some other compatible platforms, they would be able to see what they want regardless of whatever "Securty" measures you may have in place with Excel.

    Regards

  7. #7
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: 2 Levels of Security

    this is not the best but i recommend:

    first add a macro that hides all other sheets except a dummy sheet (lets call it sheet1 - an empty sheet good as nothing)
    -so all other sheets are set to "very hidden" (the sheet will NOT show by simply right clicking the tabs to unhide)
    second you can create a user form where they can input their password and add your code...
    third - if their password is wrong - then it will not unhide or show the sheet...
    fourth - set the vba project property to hidden from view with a password...


    the difference of this from your main solution is that - the sheet is already hidden from view before they run the macro, running the macro will unhide it if they have the right password,
    now if the sheet is already visible before they run the macro, then simply disabling the macro will grant them access to any sheet...

    ofcourse, if they have some other tools to unlock the vba project property, then thats the only time they can have access to all other sheets...
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  8. #8
    Registered User
    Join Date
    10-22-2013
    Location
    new orleans
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: 2 Levels of Security

    I understand there are security threats. As we send it out right now everybody is able to view everyone's. I am thankful for everyone's help. But all I really need to know is if I can build a macro and if so what would it be. I am experienced with Excel and understand it is not the best option to go to something like this. My weakness is macros and even though I'm learning I am not great with them. Any help on the macros portion not the security would be helpful.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,812

    Re: 2 Levels of Security

    Just to add to that, your macro would need to hide that sheet and reveal the dummy sheet when the file is closed, so that you are at the same starting point next time your user opens it.

    Pete

  10. #10
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: 2 Levels of Security

    this code can hide all other sheets except a sheet named "Sheet1"

    Please Login or Register  to view this content.
    you can add that code to the workbook_beforeclose sub in your workbook and it should work... HOWEVER, you need to search first and find out how to unhide the sheets manually through the vba editor so you can get the sheets back... the sheets hidden by that code cannot be easily unhidden by just clicking unhide in the worksheet tabs...

  11. #11
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: 2 Levels of Security

    just to add...

    the method i mentioned should keep anyone from seeing the sheets intentionally hidden even if they use another platform that can run excel... only if they use a special cracking program to get the vba project password can they unhide the sheets..

    so to a view of an average person without a password, the workbook will apear only with a single empty worksheet regardless if they disable the macro or enable it...

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,812

    Re: 2 Levels of Security

    The technique is described in detail on Chip Pearson's site here:

    http://www.cpearson.com/excel/EnableMacros.aspx

    though he uses it as a way of forcing the user to enable macros.

    Hope this helps.

    Pete

+ 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. Replies: 1
    Last Post: 01-24-2013, 08:03 AM
  2. Replies: 5
    Last Post: 06-04-2012, 01:12 AM
  3. [SOLVED] sum sub levels.
    By Jerome in forum Excel General
    Replies: 5
    Last Post: 04-01-2006, 10:35 PM
  4. Security Levels in 2003
    By Chrispy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2005, 01: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