+ Reply to Thread
Results 1 to 3 of 3

VBA - Dependant Drop Down auto-reset when text is entered in primary drop down cell

  1. #1
    Registered User
    Join Date
    09-12-2018
    Location
    Leicester
    MS-Off Ver
    2007onwards
    Posts
    32

    VBA - Dependant Drop Down auto-reset when text is entered in primary drop down cell

    Good Morning/Night all,

    I hope you folks are all well .

    I was wondering if anyone could please help me. I currently have the following code on my sheet:

    Please Login or Register  to view this content.
    it basically automatically says "please select name" on the dependant drop down list cell whenever the primary drop down list is changed, in order to prevent the old selection staying there. This works perfectly fine when a primary drop down selection is selected but when text is entered manually then nothing happens.


    Is there a solution to this?

    Many thanks for your help!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,897

    Re: VBA - Dependant Drop Down auto-reset when text is entered in primary drop down cell

    I'd assume your dropdown is in X21 cell, and the code presented comes from worksheet Change event handler. You may try to use another approach:
    Please Login or Register  to view this content.
    but to check whether some additional circumstances affect the response, it would be the best to see sample workbook with this effect shown.

    Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If trere are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, etc. - please show them all or at least indicate in text) The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following: Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-12-2018
    Location
    Leicester
    MS-Off Ver
    2007onwards
    Posts
    32

    Re: VBA - Dependant Drop Down auto-reset when text is entered in primary drop down cell

    ....Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If trere are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, etc. - please show them all or at least indicate in text) The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following: Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.
    I have attached a sample file. Thanks for looking into this.
    Attached Files Attached Files
    Last edited by f41yaz; 10-15-2018 at 05:27 AM.

+ 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: 6
    Last Post: 10-06-2018, 01:15 PM
  2. [SOLVED] Drop down lists dependant on previous drop down list
    By alexander.small in forum Excel General
    Replies: 6
    Last Post: 05-21-2014, 05:21 AM
  3. images instead of text in dependant drop down list
    By claire_wilson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2013, 10:11 PM
  4. Multiple drop dependant drop downs in single cell
    By LittleJerry in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2012, 02:21 PM
  5. Replies: 2
    Last Post: 07-10-2012, 05:17 AM
  6. [SOLVED] Clear 2 ranges of cell data when value is changed in primary drop down
    By ohlalayeah in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2012, 11:17 AM
  7. Value for text entries from dependant drop down list
    By BakerD in forum Excel General
    Replies: 2
    Last Post: 02-19-2009, 09:36 AM

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