Clear Cells when Drop Down Choice Changes

Jumbojet2

New Member
Joined
Aug 9, 2018
Messages
3
I hope someone can possibly help...

I have a cell with a drop down (AE9) that generates limits in cells Y17-AS17. The user inputs their information in row Y24-AS24 that has data validation based on the cells above.

If the user were to change the dropdown value in AE9, the limits change but the validation doesn't take place again.

Can the user input cells of Y24-AS24 zero out whenever the user changes the dropdown choice?

I hope I have articulated the problem well enough and thank you all in advance for the help.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
To install the code:

  • Right-click on the sheet tab.
  • Select View Code from the pop-up context menu.
  • Paste the code from below in the worksheet's code module.


Code:
[COLOR=darkblue]Private[/COLOR] [COLOR=darkblue]Sub[/COLOR] Worksheet_Change([COLOR=darkblue]ByVal[/COLOR] Target [COLOR=darkblue]As[/COLOR] Range)
    [COLOR=darkblue]If[/COLOR] Target.Address(0, 0) = "AE9" [COLOR=darkblue]Then[/COLOR] Range("[COLOR=#333333][FONT=Verdana]Y24:AS24[/FONT][/COLOR]").ClearContents
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Sub[/COLOR]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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