Macro not getting called

philky001

Board Regular
Joined
Jun 8, 2005
Messages
129
I have a macro that is giving this error when runnning:

"cannot run the macro - the macro may not be available in this workbook or all macros may be disabled."

an error occurred initializing the VBA libraries 40040
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I had one similar to this recently. For your macro, when you built it, did you build it in your PERSONAL and it now resides in a workbook? It is likely that you have a reference that needs to be enabled (VB Editor-->Tools-->References). It probably needs to have one of the libraries enabled. It depends on what your macro is doing. These are dependent on your project. So each workbook would need it enabled to run it for that workbook.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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