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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

StevenD

Active Member
Joined
Nov 17, 2004
Messages
262
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?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,095
Messages
5,835,363
Members
430,352
Latest member
xvidzoro

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