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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Makrini

Well-known Member
Joined
May 22, 2007
Messages
1,035
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"
 

HalfAce

MrExcel MVP
Joined
Apr 6, 2003
Messages
9,456
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.
 

StriderUCR95

New Member
Joined
Aug 2, 2007
Messages
3
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.
 

HalfAce

MrExcel MVP
Joined
Apr 6, 2003
Messages
9,456
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.
 

Forum statistics

Threads
1,181,607
Messages
5,930,874
Members
436,764
Latest member
avalladarez

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
Top