I am working on an access database that was built for me to use. I am familiar with writing VBA code to perform functions, however, I am not at all versed in debugging certain errors.
There is a form in the database that allows me to clean up and manipulate data in files that I can select from my computer. It uses a folder as the main root to look into where I supply the form with the names of the files located in the folder. There is also a button that is connected to perform the data clean up and manipulations.
Now that the background is out of the way, there is an error that I can't seem to get passed. It also looks like if I solve the error, it snowballs into something else. Essentially the error is a "Cannot find Project or Library." After going into my resources I noticed that there is a Microsoft Excel 15.0 Object Library that is missing. Does anyone know the relationship between this error and access, as well, as how to fix this?
I have resolved same error by following these 4 steps : Open Excel file which is having issue, press Alt + F11 go into its Visual Basic Editor. From the Tools menu select References ( Note, if references option is disabled in tools menu try closing and reopening file and enable Macro before proceeding next steps)
This is a common problem in Microsoft Office VBA. While it can have more than one cause, in your case it appears that the person who developed the solution for you was using a different version of Office from yours for development of the code. (I get the same error whenever I move the same application between Office 2003 and Office 2010 platforms.)
To fix the problem:
It would be nice if the VBA environment was able to provide a more useful error diagnostic, but I'm not sure how easy this would be for Microsoft to accomplish, given that interoperation between VBA and the library uses the venerable COM technology: error recovery would involve VBA recognizing that an alternative, and to attempt to use that library as a substitute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With