troubleshooting Question

Compile Error

Avatar of GrahamSA
GrahamSAFlag for South Africa asked on
Microsoft Excel
7 Comments2 Solutions379 ViewsLast Modified:
Hi Experts

I have macro that has been working perfectly, but when I moved the excel file to a new computer and tried to run it I get a compile error.

Here is the line that is in question:

 strDate = Format((Date), "dd MMM yyyy")

The error looks like this.
Compile Error
Cant find project or library

and the date is highlighted blue

Does anyone know why this is suddenly happening?
Join our community to see this answer!
Unlock 2 Answers and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros