Automatically hiding rows with specific values

G

Guest

Is there a way to program Excel to automatically hide rows when cells have a
certain value? For example, if a cell in the row equals zero, could the
computer automatically hide the row. I have a summary sheet that pulls
values from other sheets. When an item total is zero, I hide the row
manually. By hiding rows, the data presented to other parties only shows
pertinent information. It would be great to automate the process of hiding
rows.
 
D

Dave Peterson

I like to apply Data|filter|autofilter and use the arrow to hide the rows I
don't want to see.
 
N

Norman Jones

Hi Daria,

Why not hide the zero rows with an autofilter?

If you want to automate the autofilter, turn on the macro recorder while you
perform the required steps manually. The resultant code can be edited to
enable general application.

If you require any assistance with this editing, post back with details of
the problematic code.
 
G

Guest

Thanks. It worked beautifully.

Norman Jones said:
Hi Daria,

Why not hide the zero rows with an autofilter?

If you want to automate the autofilter, turn on the macro recorder while you
perform the required steps manually. The resultant code can be edited to
enable general application.

If you require any assistance with this editing, post back with details of
the problematic code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Macro for Hiding Rows with Zero Values 0
VBA Code for Hiding Rows with Zero Values 0
hiding blank rows 3
hiding rows 3
Hiding rows 8
Hiding rows 2
hiding rows with merged cells using macros 1
Hiding checkboxes 1

Top