Hi everyone, I'm hitting a roadblock with what is probably a simple fix, but I cannot figure out the syntax for it.
If any cell in column "I" contains the strong "Printer", I would like columns J thru M to be unhidden. If no cell in column "I" contains the string "Printer", then I would like the columns to be hidden.
I currently am using the following VBA, which unfortunately only works if a single cell (in this case, "I3") contains the string "Printer", rather than any cell in the entire column of "I":
I feel this needs to be some sort of "for each column in" type statement, but I'm unable to find any syntax that has worked.Please Login or Register to view this content.
Also, my column I contains a drop-down list. Is there any way to make the columns hide/unhide as soon as I choose "Printer" or something else from the list, rather than having to move to another cell for the columns to hide/unhide? Thanks everyone!!!!!
-Andrew
Bookmarks