You will need to modify the code for your spreadsheet. In particular the line
retireAge = Sheets("Sheet1").Range("B3").Value
needs to be changed to point to the cell containing the retirement age and all other Sheets("Sheet1")'s should refer to the worksheet on which the rows are to be hidden.
|