Hello-
I have searched the forum, but have not been able to find this exact question. Found a bunch of related questions, but wasn't talented enough to translate them to solve my problem. =)
I would like to conditionally autohide columns in response to a changes in the value of a single cell. For example:
If B2 = 1, hide (F:AQ)
If B2 = 2, hide (H:AQ)
If B2 = 3, hide (J:AQ)
If B2 = 4, hide (L:AQ)
IF B2 = 5, hide (N:AQ)
...and so on. I've been able to make this work using b2 = 1, but when I try to add anything else, I run into trouble. I also need it to be stable, such that if B2 is changed from 1 to 2, say, the whole thing doesn't fall apart. If B2 is changed from 1 to 2, columns F:AQ should stay visible, for example. Any help would be welcome.
I have searched the forum, but have not been able to find this exact question. Found a bunch of related questions, but wasn't talented enough to translate them to solve my problem. =)
I would like to conditionally autohide columns in response to a changes in the value of a single cell. For example:
If B2 = 1, hide (F:AQ)
If B2 = 2, hide (H:AQ)
If B2 = 3, hide (J:AQ)
If B2 = 4, hide (L:AQ)
IF B2 = 5, hide (N:AQ)
...and so on. I've been able to make this work using b2 = 1, but when I try to add anything else, I run into trouble. I also need it to be stable, such that if B2 is changed from 1 to 2, say, the whole thing doesn't fall apart. If B2 is changed from 1 to 2, columns F:AQ should stay visible, for example. Any help would be welcome.