hide rows if cell=0

P

Paiolas

Hi.

I need to make a macro that checks if the first cell in a
row is equal to 0, and if true hides that row, then go to
the line below and perform the same action.... until it
reaches row 50. Is it possible??
how can i do this???

Thanks
Paiolas
 
E

Erin

for x = 1 to 50
if range("A" & x).value = 0 then
rows(x).entirerow.hidden = true
endif
next x
 
S

SpeeD72

Thanks a lot!!!!

It works just fine!
I have a problem that began to happen with this
programing... i wonder if you could help me! :)

I have to have a Graph in "front" of those 50 rows, and
when the macro hides those rows my graph shirnks... Is
there a way to "freze" my graph?? ... or in the end of
the macro "give" the correct dimensions to the graph?

Thank´s a lot!
SpeeD72
 

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

Top