VBA - Excel 2007 Removing Values

Closed
BobBing Posts 1 Registration date Friday 16 March 2012 Status Member Last seen 16 March 2012 - 16 Mar 2012 à 13:33
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 25 Mar 2012 à 07:37
Hello,

I am working with excel right now with their data validation feature.

I have a yes no option in cell A3.
In cell A4 I also have a dropdown selection.
What I want to be able to do is when A3 = "No" I want the Data validation dropdown for A4 to = "" (Blank).

I have added a default button in for the overall sheet, so by default A3 is yes and A4 has a value, but if the person selects no for A3 I want A4 to automatically go blank as the row is hidden when No is selected, and I don't want a value to be calculated for A4 at the end of my sheet.

I am not sure how to code this. Any help would be greatly appreciated!

-Bob

Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
25 Mar 2012 à 07:37
You have to do some thing like this

https://ccm.net/forum/affich-269392-dropdown-lists-in-excel-2007
or may be lock the cell