Hi. I've spent hours looking for a solution and am not having any luck. I'd appreciate any help/guidance.
I have 11 columns in my spreadsheet. In the first, I want to enter a number into cell A1. I'd then like to use a macro to automatically determine how many of the other 10 Columns to hide...So to clarify...
If I entered the number 1 into cell A1, I'd like to hide 10 Columns (B:K)
If I entered the number 2, I'd like 9 columns hidden; C:K
If I entered the number 3, I'd like 8 columns hidden; D:K
If I entered the number 4, I'd like 7 columns hidden; E:K
If I entered the number 5, I'd like 6 columns hidden; F:K
If I entered the number 6, I'd like 5 columns hidden; G:K
If I entered the number 7, I'd like 4 columns hidden; H:K
If I entered the number 8, I'd like 3 columns hidden; I:K
If I entered the number 9, I'd like 2 columns hidden; J:K
If I entered the number 10, I'd like 0 columns hidden
I've found solutions that look at hiding 1 Column at a time, but I cannot find one that will account for 10 conditions. I hope the above makes sense!
Thank you very much!
I have 11 columns in my spreadsheet. In the first, I want to enter a number into cell A1. I'd then like to use a macro to automatically determine how many of the other 10 Columns to hide...So to clarify...
If I entered the number 1 into cell A1, I'd like to hide 10 Columns (B:K)
If I entered the number 2, I'd like 9 columns hidden; C:K
If I entered the number 3, I'd like 8 columns hidden; D:K
If I entered the number 4, I'd like 7 columns hidden; E:K
If I entered the number 5, I'd like 6 columns hidden; F:K
If I entered the number 6, I'd like 5 columns hidden; G:K
If I entered the number 7, I'd like 4 columns hidden; H:K
If I entered the number 8, I'd like 3 columns hidden; I:K
If I entered the number 9, I'd like 2 columns hidden; J:K
If I entered the number 10, I'd like 0 columns hidden
I've found solutions that look at hiding 1 Column at a time, but I cannot find one that will account for 10 conditions. I hope the above makes sense!
Thank you very much!