Auto updating of dependent data validation lists

crazybumpbaby

New Member
Joined
Feb 28, 2012
Messages
9
So I have a query regarding automatic updating of dependent data validation lists. I feel like this is the sort of thing many have asked before...

The following is inserted into the data validation list dialogue box to provide a drop down menu that varies according the value of Cell D7.

=INDIRECT(VLOOKUP(D7,chartlist,11,FALSE))

The VLOOKUP function provides a string as a NAMED RANGE and the data validation menu changes correctly, but one has to pull down the menu and select a value that corresponds to the new range. The problem is that the old value from the previous data validation list remains in the list cell after Cell D7 is changed.

Am guessing a macro is required here to update the list?

If I have missed a previous post on the same matter, apologies. Perhaps you could direct me to it. Many thanks in advance, Simon.
 
It will stay the same until you select something from the drop-down.

Try this in the sheet module Where D7 is your list selector value and E7 contains the validation list
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$D$7" Then Range("E7") = ""
End Sub
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top