+ Reply to Thread
Results 1 to 4 of 4

Clear downstream dependent data validation lists

  1. #1
    Registered User
    Join Date
    11-07-2019
    Location
    Ottawa, ON
    MS-Off Ver
    2016
    Posts
    28

    Clear downstream dependent data validation lists

    Hi all,
    I am fairly new to excel, and I am basically trying to teach myself the ins and outs with the help of google, books and help forums. I am mostly successful at working out my own problems, but I've finally come across one that I am hoping someone here can help me with, without going too "techy" on me.

    I have a worksheet that is 12 columns wide and 526 rows long.
    Columns 5-8 (E,F,G,H) are a table. (tblData) - this table has a dependent dropdown list.
    E4 is my "parent" dropdown - the next 3 columns are dependent on the column previous.

    I have made a fairly simple VBA to clear downstream contents in the data validation lists.

    My problem is, the VBA only works for the first row, and not the other 525 rows in my table. I am not sure how to edit the code to include the entire table.


    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Address = Range("e4").Address Then
    Range("f4").Value = ""
    End If

    If Target.Address = Range("f4").Address Then
    Range("g4").Value = ""
    End If

    If Target.Address = Range("g4").Address Then
    Range("h4").Value = ""
    End If



    End Sub
    If anyone can help me with this, I would very much appreciate it.
    Thanks much

    Also, if someone wants to tell me how to attach a file so I can show my excel sheet, that would be great. The attachments icon doesn't seem to do anything.
    Last edited by ChrisTag1; 11-20-2019 at 02:55 PM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Clear downstream dependent data validation lists

    Try...
    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    11-07-2019
    Location
    Ottawa, ON
    MS-Off Ver
    2016
    Posts
    28

    Re: Clear downstream dependent data validation lists

    CK76
    That works fantastic. Thank you so much.

    I have so much more to learn, it's an ongoing process.

    Cheers.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Clear downstream dependent data validation lists

    You are welcome

+ 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. clear dependent cell in data validation
    By Naveenaggarwal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2018, 11:18 AM
  2. Dependent Data Validation Lists
    By phil29 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-21-2013, 10:18 AM
  3. Data Validation dependent lists
    By ceruppel in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 09:55 PM
  4. Dependent Data Validation Lists
    By PHUAG in forum Excel General
    Replies: 7
    Last Post: 01-31-2010, 04:10 PM
  5. Data Validation - Dependent Lists
    By vladalexandresc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-28-2007, 06:42 AM
  6. Data Validation - dependent lists
    By freemind in forum Excel General
    Replies: 2
    Last Post: 03-16-2007, 04:43 AM
  7. Data map (three dependent validation lists)
    By cpurvis in forum Excel General
    Replies: 3
    Last Post: 12-11-2006, 03:16 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