Okay, I am new to a lot of this, so this may be simple.
I am looking for a formula or code that will hide columns depending on the content of a certain cell.
I found some code on an earlier post but that only worked when the cell was selected and manually changed.
What I have is a cell, say L1, that has a formula which based on the result of other cells will either return a "Y" or an "N". When this returns an "N" I want columns D:I to be hidden. When it is a "Y" the columns will be visible.
Hopefully that makes sense, hope someone can help!!
Thanks
I am looking for a formula or code that will hide columns depending on the content of a certain cell.
I found some code on an earlier post but that only worked when the cell was selected and manually changed.
What I have is a cell, say L1, that has a formula which based on the result of other cells will either return a "Y" or an "N". When this returns an "N" I want columns D:I to be hidden. When it is a "Y" the columns will be visible.
Hopefully that makes sense, hope someone can help!!
Thanks