scgilbert1
New Member
- Joined
- Nov 15, 2011
- Messages
- 15
Hello,
I have a fairly large workbook that uses vba code to add and delete sheets. In reviewing the project explorer, I noticed a few "Sheets" without names (see the picture, sheet24 and sheet25 and there are a few others not seen here). The icon associated with them is similar to the "ThisWorkbook" object. The sheets in question do not have names associated with them.
I am trying to remove these as I believe they are potentially corrupted but I can figure out how.
When I right click, the "Remove Sheet" option is greyed out.
When I left click the object, the properties do update but it appears to be pulling the information from the "ThisWorkbook" object.
I've reviewed the front end pages and cannot see any unaccounted for tabs.
I've tried programmatically deleting without success using "Sheets(index).delete".
I've tried unhiding the sheet before deleting using "Sheets(index).xlsheetvisible" without success.
Any other ways to get rid of these short of attempting to copy all of the data to a new workbook and starting over? (the reason I don't want to do that is that I have a large number of internal connections and named ranges that I don't want to mess with quite yet."
Thank you!
I have a fairly large workbook that uses vba code to add and delete sheets. In reviewing the project explorer, I noticed a few "Sheets" without names (see the picture, sheet24 and sheet25 and there are a few others not seen here). The icon associated with them is similar to the "ThisWorkbook" object. The sheets in question do not have names associated with them.
I am trying to remove these as I believe they are potentially corrupted but I can figure out how.
When I right click, the "Remove Sheet" option is greyed out.
When I left click the object, the properties do update but it appears to be pulling the information from the "ThisWorkbook" object.
I've reviewed the front end pages and cannot see any unaccounted for tabs.
I've tried programmatically deleting without success using "Sheets(index).delete".
I've tried unhiding the sheet before deleting using "Sheets(index).xlsheetvisible" without success.
Any other ways to get rid of these short of attempting to copy all of the data to a new workbook and starting over? (the reason I don't want to do that is that I have a large number of internal connections and named ranges that I don't want to mess with quite yet."
Thank you!