VBA Object Projects shows sheets that do not exist

abschy

New Member
Joined
Mar 20, 2019
Messages
31
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all!

Something weird has happened to my VBA Objects..

Currently my VBA objects look partly like this:

1581567128393.png


However, in my worksheet, i do not have this many sheets!
The only sheets that exist are those with the symbols of Sheet 32 and 33:
1581567272912.png
.
I have the projects for the first 30 or so sheets with the other symbol "
1581567242791.png
" all the way until sheet 50+

I am unable to right click and remove those extra sheets and i also do not have any of those sheets hidden..

How do i remove these empty and non-existent sheets?

Thank you!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
You may note that the icon for those non-existent sheets is actually the icon for the ThisWorkbook object, which is usually a sign of corruption, as has been mentioned. Since you only have two sheets, and assuming you see the same thing after restarting Excel and opening the workbook, I'd try copying the contents of each sheet to a new workbook.
 
Upvote 0
You may note that the icon for those non-existent sheets is actually the icon for the ThisWorkbook object, which is usually a sign of corruption, as has been mentioned. Since you only have two sheets, and assuming you see the same thing after restarting Excel and opening the workbook, I'd try copying the contents of each sheet to a new workbook.

oh no...i have more than 2 sheets, i've a total of about 30 sheets with approx 25 different queries in this workbook.. is there a way to fix this without having to redo everything?
 
Upvote 0
If you start Excel in safe mode (hold down the Ctrl key while starting the application and answer Yes to the prompt), and then open the workbook, do you still see the same problem in the VBE? If so, I think you will have to rebuild.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top