+ Reply to Thread
Results 1 to 13 of 13

Clear Dependent Drop Down By Column

  1. #1
    Registered User
    Join Date
    05-21-2020
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    10

    Clear Dependent Drop Down By Column

    Hi,

    Ok so my problem is I have a number of dependent drop downs in one sheet. All on different columns

    So for example D16 is dependent on the selection in D15. Then F16 is dependent on the selection in F15 and so on.

    I have the below code which resets D16 if D15 is changed. But I need it to do the same for all columns individually.

    So if I change F15 it resets F16 and so on.

    Code:

    If Target.Address = "$D$12" Then
    Range("D13").Value = "Select From Drop Down"

    End If

    Thanks

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Clear Dependent Drop Down By Column

    See the yellow banner at the top of the page for how to attach a sample file, it makes it much easier to put together code for your layout. It also helps eliminate confusion on understanding, for example your description talks about relation between row 15 and 16, yet your code sample uses 12 and 13.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    05-21-2020
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    10

    Re: Clear Dependent Drop Down By Column

    Thanks for the reply.

    I have a sample of what i mean attached now.

    In the sample if you change B2 then B3 will change to "Select From Drop Down"

    What I'm looking to do is have the same code but do it for cells C2, C3 and so on

    Hope this helps
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,068

    Re: Clear Dependent Drop Down By Column

    How about
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Clear Dependent Drop Down By Column

    kellier180, thanks for clarifying and providing a file
    I won't post any code at this time, since Fluff13 beat me to it, and it looks like the ideal way to approach the issue.

  6. #6
    Registered User
    Join Date
    05-21-2020
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    10

    Re: Clear Dependent Drop Down By Column

    Quote Originally Posted by Fluff13 View Post
    How about
    Please Login or Register  to view this content.
    That works perfect thanks for your help

  7. #7
    Registered User
    Join Date
    05-21-2020
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    10

    Re: Clear Dependent Drop Down By Column

    Quote Originally Posted by Arkadi View Post
    kellier180, thanks for clarifying and providing a file
    I won't post any code at this time, since Fluff13 beat me to it, and it looks like the ideal way to approach the issue.
    No problem thanks for the suggestion.

    Have it sorted

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,068

    Re: Clear Dependent Drop Down By Column

    You're welcome & thanks for the feedback.

  9. #9
    Registered User
    Join Date
    05-21-2020
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    10

    Re: Clear Dependent Drop Down By Column

    Just on this.

    In my actually excel sheet I have around 20 dropdown boxes for different selections in each column.

    Is there a way to have a button whereby when clicked. It would reset all the dropdown boxes for that specific column to whatever text i wanted in this case "Select From Drop Down"? But leave the dropdown boxes in other columns?

    I should also say in between some drop down boxes is text that i would need to stay there when the drop down boxes are reset

    Sorry I'm not sure how to upload an example for this.

    Thanks again
    Last edited by kellier180; 05-21-2020 at 09:50 AM.

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,068

    Re: Clear Dependent Drop Down By Column

    You could use a double click event, rather than a button.
    Double click in B1:G1 & the 20 cells below will reset
    Please Login or Register  to view this content.

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,068

    Re: Clear Dependent Drop Down By Column

    This will only do DV cells
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    05-21-2020
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    10

    Re: Clear Dependent Drop Down By Column

    That's perfect Fluff13

    Thanks for your help

  13. #13
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,068

    Re: Clear Dependent Drop Down By Column

    My pleasure.

+ 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: 1
    Last Post: 05-18-2020, 08:09 AM
  2. [SOLVED] Clear cells dependent drop down list
    By SickkkBoy in forum Excel General
    Replies: 2
    Last Post: 10-06-2017, 07:58 PM
  3. [SOLVED] Rest button to clear a changing image (which is dependent on a drop down selection)
    By excelconditional in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2017, 01:09 AM
  4. [SOLVED] Clear up to three dependent drop down lists based on selection in superior drop down list
    By theletterh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-04-2016, 09:31 PM
  5. [SOLVED] The VBA code to auto-clear dependent drop down selection when parent cell change.
    By Hotgirl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2012, 07:48 PM
  6. [SOLVED] Column B drop down list with 2 options, columns C & E with dependent drop down lists
    By betic in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-26-2012, 03:47 PM
  7. [SOLVED] Clear Dependent Drop Down Lists
    By Ambassador777 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2012, 11:38 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