+ Reply to Thread
Results 1 to 12 of 12

Please help need a cell to remain blank until after pwd is entered in drop down (vba code)

  1. #1
    Registered User
    Join Date
    06-12-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    9

    Post Please help need a cell to remain blank until after pwd is entered in drop down (vba code)

    Hi Excel Gods and Goddesses! i am back.. I am still new to the forum, so please forgive me if i have broken any rules. If you point them out to me, i will be sure to not make the same mistake!

    So i need some expert assistance -

    i have a vba code that prompts the user of my spreadsheet for a password when selecting from a drop down list (data validation).
    I need a secondary cell to remain blank - i.e. not calculate/execute the formula until AFTER the correct password has been entered.

    Any guidance is super super appreciated!!! code is below

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    Hey abenny,

    This is both misspelled and contains a trailing space:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    06-12-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    9

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    Hi! Thank you so much for responding.. I was typing quickly to remove sensitive data.
    Here it is corrected -
    Please Login or Register  to view this content.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-12-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    9

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    Thank you so much for your assistance! i super appreciate it. Sadly, it didnt work. I just done know if it can be done
    But i truly appreciate you trying!!

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    Hi Abenny,

    Thanks for the rep!

    Can you:

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    06-12-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    9

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    Absolutely! Here it is. I tried to depict what i need to happen. Basically - in cell B6 is a drop down list of customer names. I have a set of passwords assigned to each customer. They should select their name from the drop down and be prompted to enter their password. This password should allow that specific customer to see their specific discount in cell F31. The issue is that once the drop down list is no longer "select", the cell F31 is calculating the discount regardless of the password being entered. I need to have either the cell B6 remain at "Select" or cell F31 to not calculate until after the correct password is entered.
    I still want to thank you for you taking the time to help me. I really cant express my appreciation!
    Attached Files Attached Files

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    Hi abenny,

    I've tested the event and the Target must be the Drop Down choice - so the Select Case is just lloking for "Customer 1".

    We need to designate a different range for the choice to make any sense!

  9. #9
    Registered User
    Join Date
    06-12-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    9

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    OK... i think i understand what you are saying. But how do i do that?

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    What is it supposed to be looking at?

  11. #11
    Registered User
    Join Date
    06-12-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    9

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    I am sorry if i am being dense. I am not a programmer and have had to learn what this is very quickly.
    I had never seen VBA until i was handed this project.. So i am not entirely sure what you are asking.
    I need cell F31 to not calculate until after the correct password has been entered. Currently, it is calculating no matter what password is entered.
    It is quite possible that there are errors in functionality with the drop down password code as well. If you see where there could be improvements, please let me know. I am totally open to suggestions! Again, thank you so much!

  12. #12
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Please help need a cell to remain blank until after pwd is entered in drop down (vba c

    Note this has been cross-posted here
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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: 9
    Last Post: 02-03-2014, 03:21 PM
  2. Need field to remain blank unless data is entered.
    By ranchqueen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2013, 11:51 PM
  3. Replies: 3
    Last Post: 10-30-2013, 09:19 AM
  4. Replies: 1
    Last Post: 06-26-2011, 07:39 PM
  5. VBA Macro to tell a cell to remain blank
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2010, 08:35 PM
  6. Making a Cell Value of 0 remain blank
    By jonvanwyk in forum Excel General
    Replies: 1
    Last Post: 08-05-2010, 02:33 PM
  7. Cell to remain blank if value =0
    By Butehawk in forum Excel General
    Replies: 2
    Last Post: 05-10-2010, 08:28 AM
  8. Replies: 5
    Last Post: 06-26-2009, 12:42 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