Re: "can't find project or library" error has started appearing in VBA running on Word 2003

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



In the VBA editor, go to the Tools->References menu. Most likely one or more of the references are marked as 'MISSING:' and need to be resolved. In VBA, when any reference is missing none of the code executes, so the particular error line doesn't mean anything.

"PeterEvans" <emarking-assistant@xxxxxxxxxxxxxxx> wrote in message news:dfe4414b-5490-4fec-aaf1-389978b245bd@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have been developing a Word VBA in 2007 and I have just come across
some machines using Office 2003 which produce the following error
"Compile error: can't find project or library"

The lines that are highlighted include things like
daystogo = DateDiff("d", Date, maDateExpire)
with Date highlighted

When I type
debug.print date
into the immediate window i see the same message

If I type
debug.print vba.date
into the immediate window all is OK

Why is this error occurring and how can I solve it.

I have looked at
http://cpap.com.br/orlando/VBADecompilerMore.asp?IdC=Help
but this does not resolve the issue

.



Relevant Pages

  • Re: "cant find project or library" error has started appearing in VBA running on Word 2003
    ... Have you tried clicking on Reset on the Run menu in the VBE ... Is there any way to reset the references if the REFERENCES item is ... into the immediate window all is OK ... but this does not resolve the issue- Hide quoted text - ...
    (microsoft.public.word.vba.general)
  • Re: Alternate file types for RUN ?
    ... resolved at link time and are fixed. ... The references to the RTL routine symbols/entry points are only partially ... as a shareable image name and an offset. ... doesn't need to resolve this). ...
    (comp.os.vms)
  • RE: How to identify missing libraries in Excel (Office-XP) using VBA
    ... box allows your code to manipulate modules and references. ... > Consequently, I have in some way to identify missing libraries, i.e. ... > libraries that in the VBA editor are found by looking for "MISSING ..." ...
    (microsoft.public.excel.programming)
  • Re: Get size of file
    ... In the vba editor, open the TOOLS menu and select References. ... If Not objFSO.FileExistsThen GoTo ... Set objFILE = objFLDR.Files ...
    (microsoft.public.access.modulesdaovba)
  • Re: Input Values from Textbox cannot be tabulate
    ... I tries to view my application in VBA editor, tools> References, scroll down ... either Microsoft ActiveX Object Library or Microsoft ... intentionally you probably should just uncheck the reference and compile to ... VBA editor to be sure that there aren't any other code bugs. ...
    (microsoft.public.access.formscoding)