I'm building a spreadsheet in which I would like to have some rows auto hide and unhide based on a value in a separate cell and have a two part question.
For example, if cell A5 = "", then auto hide row 12. Below is the code I've done so far that works in part.
Question 1. I can get the code to work by manually clearing cell A5. However, I want to go a step further by having a If statement in A5 ,for example, =if(a1="x","x",""). As soon as I add the IF statement to a5, the auto hide/unhide no longer works. Although my target cell A5 is technically blank from visible view, it's like the VBA is seeing the IF statement as not blank or "". Is there a way to make this work if the target cell A5 has an if statement that results in a blank?
Question 2. How would I go about adding additional unrelated target cells and result rows? Example, if cell A6 = "", then hide row 13.
Bookmarks