+ Reply to Thread
Results 1 to 4 of 4

Reset dependant validation list when the previous validation list is changed.

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Reset dependant validation list when the previous validation list is changed.

    Hello! This is my first post on this forum so I hope that it'll be comprehensible.

    Quite recently, I've made a spreadsheet with four dependant validation lists (the lists are in the following cells: A2, B2, C2, D2 and the content of B2 depends on A2, the content of C2 depends on B2, and the content of D2 depends on C2 ). However, I've encoutered a quite common problem- after changing the selection in A2, the one in B2 still corresponds to the previous selection in A2, and so on.

    Before posting here, I did some research and managed to find something like this:

    Please Login or Register  to view this content.
    This manages to clear B2, when I change A2, but, due to my very limited knowledge of VBA (to say the least), I can't really adapt it to my problem.

    I'd be really grateful for any help with this. If any addtional information is required, I'd be happy to provide some more. I'd rather not enclose my excel file, because it's in Polish.

    Cheers,
    Mike

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

    Re: Reset dependant validation list when the previous validation list is changed.

    Try this...

    Please Login or Register  to view this content.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Reset dependant validation list when the previous validation list is changed.

    If you want it to apply to B:E columns as a whole and the desired result is to clear all the cells to the RIGHT of the updated cell (If A2 gets changed it could break B2, C2 and D2, right?), then maybe this:

    Please Login or Register  to view this content.
    This macro would also work if you changed several cells at once, like cut/paste into column A or B in more than one cell.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    11-09-2012
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Reset dependant validation list when the previous validation list is changed.

    Thank you very much! Both of you were helpful and provided me with some food for thought!

    Cheers,
    Mike
    Last edited by Rimmu; 11-10-2012 at 09:25 AM. Reason: typo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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