From what I can see, the code you posted doesn't hide or show rows. Do you have other code in your sheet? Are the buttons physically placed in the rows that are hidden?