+ Reply to Thread
Results 1 to 7 of 7

Password Protection of Single Dropdown options

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    3

    Password Protection of Single Dropdown options

    Hi All,

    I am new to this thread but found some super useful info already regarding specific topic I am after, just not on a scalable way.

    I have a drop down menu that needs each option password protected which I am able to do using a macro, however the bigger issue comes as this drop down has c.5000 entries in and each needs its own unique password. Without writing thousands of lines in the macro does anybody know how I would go about making the macro look up against a (hidden and password protected) sheet of data that has the drop down option and then the password next to it?

    Hopefully this makes sense....

    Thanks in advance!
    Sam.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Password Protection of Single Dropdown options

    Hi,

    The obvious solution would be a VLOOKUP(). Either in a hidden cell somewhere and compare the password given with that hidden cell, or as code in an
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-04-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    3

    Re: Password Protection of Single Dropdown options

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    The obvious solution would be a VLOOKUP(). Either in a hidden cell somewhere and compare the password given with that hidden cell, or as code in an
    Please Login or Register  to view this content.
    OK thanks, I am fairly new to Macros and wasn't aware I could do that! I will give it a go and see what happens!

    Thanks.

  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,373

    Re: Password Protection of Single Dropdown options

    You could just use VLOOKUP. The password sheet doesn't need to be visible or unprotected to return the relevant password. So you just need a means of requesting the password from the user.

    However, you need to be aware that Excel is not a secure environment and it would be a simple matter to access the password list.

    Regards, TMS
    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
    Registered User
    Join Date
    08-04-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    3

    Re: Password Protection of Single Dropdown options

    Quote Originally Posted by TMS View Post
    You could just use VLOOKUP. The password sheet doesn't need to be visible or unprotected to return the relevant password. So you just need a means of requesting the password from the user.

    However, you need to be aware that Excel is not a secure environment and it would be a simple matter to access the password list.

    Regards, TMS
    Thanks for the quick response. I was going to use code similar to the code that I have picked up from this thread http://www.excelforum.com/l/744273-asdf.html and then adapt as required.

    I am not overly concerned about data being accessed, there are only so many lengths one can go to. If people really want the data then they have another way of accessing it, I am just providing a simple solution for quick access to data they are allowed access to.

    thanks

  6. #6
    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,373

    Re: Password Protection of Single Dropdown options

    You're welcome. Thanks for the rep.

    Glad you are moving forward. Just wanted to raise your awareness of the security issues.

    Regards, TMS

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Password Protection of Single Dropdown options

    Glad to have helped and thanks for the rep.

+ 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] Password protect a dropdown ( when dropdown is clicked)
    By Simrat Kaur in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-21-2014, 11:12 AM
  2. [SOLVED] Password Protection Formula - Remembering I already entered the Password!
    By JJFletcher in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-10-2014, 01:35 PM
  3. Replies: 0
    Last Post: 08-26-2014, 08:44 AM
  4. Cull dropdown list options based on selection in another dropdown
    By Kiffar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2012, 01:53 AM
  5. Splitting Password Protection Area-RangeWise in a Single Sheet?
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2011, 03:03 PM
  6. password protection-is there anyway to put a password on running a macro in excel?
    By Solarissf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2008, 10:06 AM
  7. offer dropdown options based on another dropdown
    By Conor in forum Excel General
    Replies: 2
    Last Post: 01-13-2006, 12:28 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