Hide a row

HelpNeeded

New Member
Joined
Feb 12, 2004
Messages
8
I have a spreadsheet whihc has the following as a sample

199
299
234
283
282
389
464
564
544


I have a combo box that lets me select 1 through to 5. When I select 1 I want all the rows that start with a 1 to be hidden. when I select 2 i want all the rows that start with 2 to be hidden. the number abover are set and will not change.

Can anyone help me do this please. Keep it simple as my VBA in excel is pretty poor.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Just a quick question about what you are trying to do.

Is it the rows that you want hidden i.e when the combobox is 1 hide rows 100 to 199 or :

Is it when a cell contains a number that begins with a 1 that you wnat to hide that row?
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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