When Microsoft Excel shows the error message “Compile error: Can’t find project or library,” it blocks your macros and VBA scripts. It occurs due a wide variety of reasons including, missing references, broken libraries, or incorrect file paths. However, you can fix it quickly with a few reliable methods.