Library for CurDir Not Found

D

Don

In the midst of reporting a macro (VBA), I have run into a problem. For
whatever reason, when I execute the VBA code, when it hits the following
statement:

strFilePath = CurDir

the following error is generated:

Compile error: Can't find project or library

I have not been able to confirm this, but I am assuming CurDir should be in
the Visual Basic for Application library under Tools->References

Since the References dialog box cuts off the exact file name, I can only
determine that it points to one of the following files:

VBACV10.DLL
VBACV10D.DLL
VBACV20.DLL
VBE5.DLL
VBE6EXT.OLB

in C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6

Any suggestions would be greatly appreciated!

Thanks!

Don
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top