Quick question: Is it possible to evolve the code so that it also can open hidden sheets?

I´ve been trying to solve it unsuccessfully.