hide a row

cgriff

Board Regular
Joined
Aug 26, 2002
Messages
201
what a am trying to to do is hide a row of data I use =if(a1=456,"")to hide cells how can i hide the row.
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.

Chris Davison

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,790
On 2002-09-15 05:10, cgriff wrote:
what a am trying to to do is hide a row of data I use =if(a1=456,"")to hide cells how can i hide the row.
thanks in advance

Would the autofilter help ?

apply the autofilter to column A....

then try the following :

is not equal to 456

this will filter out any column A values not equal to 456
 

seacrest

Active Member
Joined
Aug 15, 2002
Messages
301
Sub Hide()

If Range("a1")=456 then
Rows("1:1").RowHeight = 0
end if
end sub
 

Forum statistics

Threads
1,147,736
Messages
5,742,894
Members
423,760
Latest member
photogfrog

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