Conditional Hiding?

StriderUCR95

New Member
Joined
Aug 2, 2007
Messages
3
I have a pricing sheet that i would like to conditionally format. I have a drop-box list, and i want to format so that a hidden row appears (that i hid there before) if a specific value is entered. Is this even possible, and if not, does anyone have any recommendations for something similar to this? Basically where i work i have set product sizes, but sometimes we deal with custom sizes. I want a hidden row (with dimensions and such) to pop up if i select "other" in the drop-box list of dimensions. Thanks in advance.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Are you using Data Validation for your drop box? Or a Combo Box?

If using a Combo Box - set a Macro to unhide if the value = "Other"
 
Upvote 0
Hello StriderUCR95, welcome to the board.
Sure, this is very possible.
Just how much is involved depends on what you mean by "drop-box"

If you're looking for suggestions, I'd look at using a data validation cell as my first choice
(for the mechanics of what you want to do, not necessarily the appearance.) If you
want to use a ComboBox instead I suggest the one from the Controls Toolbox toolbar
as opposed to the Forms toolbar.
Let us know which you're going to choose for the quickest (meaningful) response.
 
Upvote 0
I am using Data Validation for my drop box. However, if there is a better alternative for my application, then feel free to let me in on it.
 
Upvote 0
OK, for a data validation cell...
Assume your validation cell is cell A1, and the row to hide/unhide is row 20.
Right click the sheet tab for the sheet of interest and choose View code.
Copy & paste this into the sheet code module. (The white area on the right.)
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Rows(20).Hidden = Not [A1].Value = "Other"
End Sub
Press Alt+Q to close the vb editor and try it out.

Hope it helps.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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