I am currently using the following code to hide unused sheets based on cell value "" in Range "C5:C105". The tabs are named 1-100 and I am using Range "B5:B105" as a reference for the code. Issue is this: When the code runs and there is no value in C5, instead of sheet.name 1 (sheet1) being hidden, sheet(101) gets hidden because it is in position 1 in the tab list at the bottom of the workbook. The code works fine if the tabs are A,B,C...and reference Range is A,B,C...but I would like it to work using 1,2,3...Any Ideas?
Bookmarks