Error message - "Can't find project or libarary"

sobrien1234

Board Regular
Joined
May 10, 2016
Messages
175
Office Version
  1. 365
Platform
  1. Windows
My workbook was working fine yesterday but today I keep getting the error message "Can't find project or libraray" - the box has a heading "Microsoft Visual Basic for Application"

The file is quite large and has macros in it. I can't:
1. Save it anymore
2. Make changes before it says "not responding"
3. None of the macros work anymore

Any suggestions much appreciated.

Thanks

Seamus:confused:
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
that should be referenced from the VB window, > Tools > references and look for something with an X against it for not installed.

As for not working macros, first step is always to do a full restart. The not responding can be the directory targeted for save has stopped responding (often a network drive)
 
Upvote 0
that should be referenced from the VB window, > Tools > references and look for something with an X against it for not installed.

As for not working macros, first step is always to do a full restart. The not responding can be the directory targeted for save has stopped responding (often a network drive)

Thanks I tried the tool/reference and it just showed a blank box. I use a home computer but also dropbox where the file is stored. It's quite large file and will take a long time to rebuild. Any other suggestions?
 
Upvote 0
@mole999

I am current learning about using the scripting library, I see that you can create an object

for instance dim fso as object followed by set fso = CreateObject("Scripting.filesystemobject) which I think allows the user to use the code without having to activate the library.

My question is what's the norm for send the code out?

1. Create an object, or is it a case that if you send the workbook out with scripting library ticked then they will be able to use it.
 
Upvote 0
from my experience I use libraries that are normally installed, (there is a thing called late binding that can be used), different versions have different capabilities, so something from 2016 may not run on 2010 or even 2013. It is also possible to force loading of libraries > https://stackoverflow.com/questions/9879825/how-to-add-a-reference-programmatically took me ages to develop this so I could make it work
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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