+ Reply to Thread
Results 1 to 4 of 4

Unique passwords for Drop Down Menus

  1. #1
    Registered User
    Join Date
    08-09-2016
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    3

    Unique passwords for Drop Down Menus

    New poster here. I found a solution from this website for my problem, but I have yet to implement. There are a few additional factors for my problem so I would like to design knowing whether it will work as intended. Keep in mind I'm 100% new to VBA, macros. So I may have other problems.

    Here's my problem: I want users to be able to view only their data, based off of a drop down menu. They each need to have their own password. BUT, there are a few users who are able to see ALL data.

    This is the "Macro" solution posted by another user in a different thread for reference:

    Please Login or Register  to view this content.
    I want users that have privilege to see all stores to still have the option to view stores individually, so it won't suffice to simply include an "All Stores" selection in my drop down menu.
    If I provide these users with a password to unlock the sheet entirely from the Review tab, will it remove the prompt for passwords in the drop down menu?

    I suppose it's possible to set up two passwords for each store, one a master password, but I don't want the end user to be prompted with a password each time they want to switch their store view.

    All ideas appreciated.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Unique passwords for Drop Down Menus

    I'm going to take a guess as to how the workbook might actually look since it is not posted. I'll assume that there is some source data that contains information as to what information belongs to Mike, Pete and Alan.

    What I would do is put this on a very hidden sheet, filter it according to name and then copy the filtered data to a sheet where they can use it, perhaps even as source data for a pivot table.

    For the users who get to see all the data, instead of passing a name as the filter criteria, pass "*" - this should filter in all records.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    08-09-2016
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    3

    Re: Unique passwords for Drop Down Menus

    The code was for a spreadsheet that was only related to my problem.
    Currently, I am using a feature that allows me to select a store from a dropdown menu, and all cells will populate with the totals for that specific store only. The problem is that the user can just change the dropdown menu. Even if I protect the sheet, if they type in any other store, they can see the data until they click OK on the error box!
    My work around solution is to print the sheet to PDF and send each individual store their totals only.
    There are two reports- individual and stores. I use filters as you mentioned for individual totals, but store totals are isolated using the dropdown feature.
    My goal is to send ONE email, to all store managers and senior management. They would then be prompted for their password, and only have access to what they have privilege to see.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Unique passwords for Drop Down Menus

    Assume that the data is on Sheet X. Assume also that each store is associated with a particular manager.

    On Sheet Y you have an Excel Table which is emptied on file open and closed or you ship it out empty. Build a pivot table based on this sheet. Obviously it will be empty too.

    When a manager validates credentials set a variable to the manager's name. Then use this variable to filter the data on Sheet X.

    Copy the filtered data to the table on Sheet Y. Now the pivot table will have access only to stores associated with that manager.

    So when a manager opens up and enters credentials, only the data on Sheet Y is available. Sheet X is very hidden and its existence isn't even known about. In fact, you can put in code to delete Sheet X once the credentials are successfully verified.

    Now for people who are allowed to see all stores, set the variable to "*" instead of a specific name. This will filter in all records. You'll probably need a table that links login, password and name passed to the variable.

    Even with a very hidden Sheet X, there are security concerns. The casual person probably could not get to the data. But as with any system, if the data are there, they can be gotten to. If this is acceptable, then you can stop here.

    A more secure way would be to set up the spreadsheets as I described. Then loop through the manager names, make a copy of the file including a refreshed spreadsheet, and eliminate Sheets X & Y on the copy. Save the copy with the manager's name and then mail it out (even this part could be automated if you also include the email address in the table with the credentials). This way every manager gets a usable pivot table and only has access to the appropriate stores because the other data do not exist in the copy of the file the manager gets.

+ 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. Passwords for numeric values in drop down lists
    By Svilen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2016, 05:22 AM
  2. [SOLVED] Drop down list protected by individual passwords (VBA)
    By sylvainsyl20 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-08-2016, 02:25 PM
  3. Drop Down Menus
    By shaunkinney in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2012, 04:43 PM
  4. Passwords and drop down lists
    By NatNat in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-05-2009, 12:50 PM
  5. Replies: 2
    Last Post: 11-22-2008, 11:53 AM
  6. [SOLVED] Drop down box with associated passwords
    By gall in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2006, 02:25 AM
  7. [SOLVED] Help w/Protecting a Pivot Table through many unique passwords
    By NicoleHKeller in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-12-2005, 09: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