hiding rows with an if statement

L

Larry Fitch

I would like to be able to hide a number of rows based on the response to a
question..

The response to the question is a list box with either "yes" or "no" as the
choices.. If the response = "no" then I would like to hide the next 3 rows,
otherwise do nothing..

Is there a "hide" command of some sort that I can use as part of an IF
statement ?
 
P

Paul

Hi Larry,

You can't hide rows using a function, however you could do so using
worksheet_change macro if the "listbox" is actually a drop-down lis
using data validation.

If it is a listbox, you may be able to still do it, you'd just have t
specify which rows to hide since a listbox is not technically "in"
cell, but above the worksheet.



I would like to be able to hide a number of rows based on the respons
to a
 

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