Object library invalid or contains references to object definitions that could not be found

always_confused

Board Regular
Joined
Feb 19, 2021
Messages
68
Office Version
  1. 2016
Platform
  1. Windows
Hello,
I have been using the same workbook for over a month now with no issues. Today, upon clicking a button that has always worked fine, I get the error "Object library invalid or contains references to object definitions that could not be found". Can anyone help? I am completely stuck and my workbook is basically useless without the macros. I cannot even run a sub as simple as

VBA Code:
Sub test()

MsgBox ("OK")

End Sub

Any help would be greatly appreciated
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Is it an activex button by any chance?
 
Upvote 0
Hi,​
usual issue when using an ActiveX button rather than a Form button …​
Also as Excel needs to load all in memory and do not well manage it​
so if your computer does not have much RAM the better is to close a maximum of opened applications before opening Excel …​
 
Upvote 0
Hi,​
usual issue when using an ActiveX button rather than a Form button …​
Also as Excel needs to load all in memory and do not well manage it​
so if your computer does not have much RAM the better is to close a maximum of opened application before opening Excel …​
Oh ok, thanks I'll keep that in mind
 
Upvote 0
If you can use a Form button instead, I’d recommend it. They’re much more stable.
 
Upvote 0

Forum statistics

Threads
1,223,098
Messages
6,170,103
Members
452,302
Latest member
TaMere

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