I have a worksheet with cells G5 to M5 displaying years '2005' until '2011'.
I want to hide columns G to M in function of the value of N5. If N5 equals 2005, then hide them all, if N5 equals 2006, then hide columns H to M, if N5 equals 2007, then hide columns I to N, and so on, until 2011.
Is there any way to do this with a macro?
I want to hide columns G to M in function of the value of N5. If N5 equals 2005, then hide them all, if N5 equals 2006, then hide columns H to M, if N5 equals 2007, then hide columns I to N, and so on, until 2011.
Is there any way to do this with a macro?