Quantcast
Channel: Excel Worksheets
Viewing all articles
Browse latest Browse all 100

Hide columns based on row values

$
0
0
Hi all,

I am trying to put together a macro to achieve the following:

I have formulas in row 5 of my worksheet in columns A through VF. These formulas return in each cell from A5 through VF5 either the result "PRINT" or "" (blank). I need the code for a macro which will say:

"if A5 = "PRINT", then do not hide column A. If A5 = "" (blank/empty cell - other than the formula that in that cell) then hide column A. I want it then to do that same for columns B through VF so that the columns for...

Hide columns based on row values

Viewing all articles
Browse latest Browse all 100

Trending Articles