Object unexpectedly changed in VBA project window - how to change back?

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

Working on a spreadsheet containing VBA, last night, closed it and it contained 1 Workbook object (ThisWorkbook) and several Worksheet objects)

Today, in the Project window, two worksheet objects have changed icons and showing as Workbook objects?!

This is causing an issue with a save routine autotriggered when file exists because it can't find the correct object and I keep receiving error:
Run-time error 429: ActiveX component can't create object

How can I reset the changed Workbook objects back into Worksheet as they're supposed to be?

TIA,
Jack
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
That sounds like corruption to me.
 
Upvote 0
lol thanks Rory, but how can I isolate or identify the cause or find the corruption? It's not obvious

Code is fairly basic, only "complex" parts are reading/writing to an Access database.
 
Upvote 0
You can't really. If it were that simple, it probably wouldn't happen.

Do you use activex controls though?
 
Upvote 0
I know, ask an obvious question! This has totally baffled me as been working on this file for ages (without crashing/corruption issues)

No, avoid them due to issues with display and sizing, try to always use very basic buttons and form controls, if I have to.
 
Upvote 0
Got any COM add-ins loaded? Do you see the same thing with Excel in Safe Mode?
 
Upvote 0
Not that I know of, it's all meant to be "standard" Excel and "standard Access"
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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