I searched the site and found several similar questions, but I could not find the exact answer to my problem. I expect that this is an easy one.
I have a formula (similar to [=If(a1>b1,0,1)] in the protected cells F2:Q2 that will return either a 1 or a 0. I need a macro that will hide every column that contains a 0. Of course the macro needs to account for the formula and not just the value.
The data is dynamic so the macro needs to run if there are any changes to the formula results in F2:Q2.
The worksheet is protected with a password.
I am using Excel 2000 and Windows 2000.
Any help would be appreciated.
I have a formula (similar to [=If(a1>b1,0,1)] in the protected cells F2:Q2 that will return either a 1 or a 0. I need a macro that will hide every column that contains a 0. Of course the macro needs to account for the formula and not just the value.
The data is dynamic so the macro needs to run if there are any changes to the formula results in F2:Q2.
The worksheet is protected with a password.
I am using Excel 2000 and Windows 2000.
Any help would be appreciated.