Hiding rows automatically

maxioliv

New Member
Joined
Aug 3, 2015
Messages
2
Dear all,

I have a question regarding a spreadsheet I have. I have already searched other threads but I can't find any helpful solution (since it's quite complex).

I do not know a lot about macro's and would need a macro to automatically hide rows if the row is empty (some rows do contain IF formulas which return value "") and to unhide if the row suddenly contains a value (due to a value returned by the IF formulas).
I have found examples of this but they only apply to adjecent rows or give example of only one row. I do however need to hide multiple rows at once when empty. In my specific example: 24, 25, 26, 27, 28, 31, 32, 52, 53, 57, 58, 112, 113, 114, 115, 125, 126, 127, 128, 131, 135, 136 need to be hidden if empty or pop-up if not empty. So...:

Can this be done in one single macro?
Can this be done automatically or do I have to make a 'button' to activate the macro?

As mentioned previously, I'm new to the macro-thing and would really appreciate any advice :)

Thank you in advance!

Maxioliv
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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