Auto hide Filtered Columns with Text

DMcDon

New Member
Joined
Jan 18, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello, I am trying to see if it is possible to auto hide columns where cells are blank after filtering. I am wanting to filter Column A and for columns B-HW only show those column that have a "P, P*, S, S*". The idea is to filter by the Zoning District and only show the uses that are allowed for that district. Example, filter to show R-20 and then only the columns with "P, P*, S, S*" are shown, all others are hidden. Then when the filter is removed, the columns unhide. I have only seen macros that were made for integers and not text. Thank you in advance.
 

Attachments

  • Use Table Example.jpg
    Use Table Example.jpg
    232.8 KB · Views: 8

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,214,923
Messages
6,122,286
Members
449,076
Latest member
kenyanscott

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