Can visual basics hide rows based on cell values?

G

Guest

Can visual basics hide rows based on cell values? If for example a specific
cell has a value less than 1, then the entire row is hidden.
 
G

Guest

Hi Jerry

Of course it can, how do you want to trigger the procedure?
By clicking on a button, or automatically after update, when
you open the Workbook??

Do you want it to be a specific cell, or any cell in the row?

i'll post the code, as soon as you post your preferences on
these questions!

Cheers Carlo
 
D

Don Guillett

something like

for i=cells(rows.count,"a").end(xlup).row to 2 step -1
if cells(i,"a")=1 then rows(i).hidden=true
next
 

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