Excel..condition based on drop down list

Closed
Kingleviathan - 25 Sep 2010 à 20:30
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 25 Sep 2010 à 21:04
Hello,

I've created a drop list (using the validation method). in excel 2003.

What I wish to do...

is create a condition where another cell is invisible unless a specific option from the drop list is selected... the drop list has option list words not numerics..
Related:

1 response

venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 811
25 Sep 2010 à 21:04
try these two macros
s is in the list of validation
one problem is will you remember which cell is hidden so that you can unhide it.

Sub hide_cell() 
If Selection.Value = "s" Then 
Selection.NumberFormat = ";;;" 

End If 
End Sub



Sub unhide_cell() 
Selection.NumberFormat = "general" 
End Sub