+ Reply to Thread
Results 1 to 7 of 7

Auto update of indirect list when parent validation list is re-selected.

  1. #1
    Registered User
    Join Date
    09-01-2015
    Location
    ia
    MS-Off Ver
    2007
    Posts
    12

    Auto update of indirect list when parent validation list is re-selected.

    Hello All,

    I'm creating a sales pricing worksheet in which the user will select products with some of those products having an indirect list of associated options. Both the validation list and indirect dependent list are populating with the correct information. However, I need the indirect dependent list to auto update should a user re-select their item in the initial validation list. Othewise the indirect list won't update unless physically clicked upon.

    I've located a code while scouring the web that I have been successful using solely on my first validation list/indirect dependent list. I've now come to my next unrelated validation list/indirect dependent list (which I might add is in the same column) and I cannot figure out how to add it to the VBA code. The code snapshot below is the code that I've used for the first Vlist/Ind Dep list. My next validation list and subsequent indirect dependent list would be in cells E15 and E16. These new lists are unrelated to my initial cells.
    Please Login or Register  to view this content.
    I thought maybe I could stack the codes such as shown below, but of course I hit the Ambiguous name detected:worksheet_change error.
    Please Login or Register  to view this content.

    Thanks in advance for any assistance,
    Chris

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

    Re: Auto update of indirect list when parent validation list is re-selected.

    Don't you just want to clear the current entry of the dependent list if its parent list changes?

    If yes, try this...

    Please Login or Register  to view this content.
    Add more parent list cell addresses (bold) to suit.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-01-2015
    Location
    ia
    MS-Off Ver
    2007
    Posts
    12

    Re: Auto update of indirect list when parent validation list is re-selected.

    Quote Originally Posted by AlphaFrog View Post
    Don't you just want to clear the current entry of the dependent list if its parent list changes?

    If yes, try this...

    Please Login or Register  to view this content.
    Add more parent list cell addresses (bold) to suit.
    Thank you AlphaFrog! Works as I needed and I added "Please Select" to the Target.Offset as well.

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

    Re: Auto update of indirect list when parent validation list is re-selected.

    Quote Originally Posted by xtremca View Post
    Thank you AlphaFrog! Works as I needed and I added "Please Select" to the Target.Offset as well.
    Well done. Thanks for the feedback.

  5. #5
    Registered User
    Join Date
    09-01-2015
    Location
    ia
    MS-Off Ver
    2007
    Posts
    12

    Re: Auto update of indirect list when parent validation list is re-selected.

    Quote Originally Posted by AlphaFrog View Post
    Don't you just want to clear the current entry of the dependent list if its parent list changes?

    If yes, try this...

    Please Login or Register  to view this content.
    Add more parent list cell addresses (bold) to suit.
    Hey Alpha,

    If you happen to stumble back into this thread, I do have a followup question. Adding to the E6,E15 for subsequent resets, If I skip rows and have a new unrelated validation list with an indirect in the same column, how would I go about adding those in. So ("E6,E15") and then new unrelated list ("E20,E23").

    Chris

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

    Re: Auto update of indirect list when parent validation list is re-selected.

    If Not Intersect(Range("E6,E15,E20,E23"), Target) Is Nothing Then

  7. #7
    Registered User
    Join Date
    09-01-2015
    Location
    ia
    MS-Off Ver
    2007
    Posts
    12

    Re: Auto update of indirect list when parent validation list is re-selected.

    Quote Originally Posted by AlphaFrog View Post
    If Not Intersect(Range("E6,E15,E20,E23"), Target) Is Nothing Then
    Thanks for checking back. I tried what you noted earlier in the thread but now realized I forgot to add my indirect to the parent validation which was causing me the grief. Thanks for the follow up.

+ 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. [SOLVED] DATA VALIDATION CONTROL BOTH WAYS PARENT LIST Vs CHILD LIST
    By abuharvey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2015, 03:51 AM
  2. Replies: 4
    Last Post: 07-03-2014, 02:37 AM
  3. [SOLVED] Using Data Validation List to update customer address list
    By Rosco88 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-29-2014, 10:27 AM
  4. Replies: 7
    Last Post: 02-01-2013, 06:47 PM
  5. Data Validation Dependant auto update the list
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 07:38 PM
  6. auto update validation list.
    By Jurado01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2009, 11:23 AM
  7. Auto Update A Validation List
    By Dmorri254 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2005, 04:06 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