Hide rows that contain text

Buskopan

Board Regular
Joined
Aug 4, 2014
Messages
54
Hello! First of all thanks for useful website.

Need your help. I got spreadsheet with information in columns A to BL and In column "BK" on some rows i got message "closed" the rest within "BK" are with no text in it.

I need macro to hide the columns that contains "Closed" and something that will unhide them if required.

I will set that on the button.

Thank you in advance.
 
We did macros for one column BK to separate Closed raws and

What if I have formula in BJ column which checks cell BB for presence of any number and displays Ok or Del (Delay) and I want that filter to work with macro to sort out all "Del"s (Delayed payment in that case)

faoeq8.jpg



I have tried to use code.

Code:
Sub Hide_Rows_Closed()  With Range("BJ1", Range("BJ" & Rows.Count).End(xlUp))
    .AutoFilter Field:=1, Criteria1:="<>Ok"
  End With
End Sub

But seems I'm doing something wrong here. Or presence of another filter causes nothing to happen.
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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