+ Reply to Thread
Results 1 to 5 of 5

Passwords for numeric values in drop down lists

  1. #1
    Registered User
    Join Date
    10-04-2015
    Location
    Madrid Spain
    MS-Off Ver
    2013
    Posts
    7

    Passwords for numeric values in drop down lists

    Hi all,

    I have a drop down (data validation) list of 70 numeric values (each relating to a 4 digit product code).
    I want to set an individual password for each product code.

    I have searched the forums for a solution to my problem and have found the following thread:

    http://www.excelforum.com/excel-gene...down-list.html

    I tried editing the top part of the code that begins with Const changing the name to a 4 digit code and i get an error saying "compile error, expected identifier". I don´t understand why Const is not working with a numeric value.

    Furthermore, if it worked I assume that I would need to repeat that line of code 70 times.
    If possible I would like to save the passwords on a hidden sheet, with the password matched to each 4 digit code.

    I attach an excel file with an example

    Thank you very much in advance
    Attached Files Attached Files
    Last edited by Svilen; 07-25-2016 at 12:08 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,658

    Re: Passwords for numeric values in drop down lists

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    10-04-2015
    Location
    Madrid Spain
    MS-Off Ver
    2013
    Posts
    7

    Re: Passwords for numeric values in drop down lists

    Thank you, Alphafrog!

    Perhaps I should have provided more context. The objective is that specific product info can only be visualised if you have the password correct. If you enter a wrong password the input cell should remain blank. I tried to fix this doing the following, but it hasn´t worked
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,658

    Re: Passwords for numeric values in drop down lists

    Quote Originally Posted by Svilen View Post
    Thank you, Alphafrog!

    Perhaps I should have provided more context. The objective is that specific product info can only be visualised if you have the password correct. If you enter a wrong password the input cell should remain blank.
    That doesn't explain much. Your example file only has an input box and a sheet with product numbers and passwords. What do you want to visualize? there was no dropdown list or product info.

  5. #5
    Registered User
    Join Date
    10-04-2015
    Location
    Madrid Spain
    MS-Off Ver
    2013
    Posts
    7

    Re: Passwords for numeric values in drop down lists

    It would be to visualise classified product information, stored in a hidden database sheet.
    Only the person with the code would be able to visualise the information.
    I´ve expanded on the example in excel and attach the file accordingly
    Attached Files Attached Files

+ 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. Multi Drop Down Lists & Duplicate Values
    By forestavekids in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 01-21-2016, 12:41 AM
  2. [SOLVED] Dependent Dropdown lists with all numeric values
    By HV MAN in forum Excel General
    Replies: 3
    Last Post: 03-17-2015, 12:42 AM
  3. Drop Down Lists - Values assigned to Text
    By Traviscon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-19-2012, 02:12 PM
  4. Replies: 2
    Last Post: 05-25-2011, 01:40 PM
  5. Picking multiple values from drop down lists
    By ChristineRoseValenti in forum Excel General
    Replies: 1
    Last Post: 08-23-2009, 04:10 PM
  6. Passwords and drop down lists
    By NatNat in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-05-2009, 12:50 PM
  7. lookup values via drop-down lists
    By IanJ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2007, 04:49 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