Re: "can't find project or library" error has started appearing in VBA running on Word 2003
- From: "Paul Shapiro" <paul@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Feb 2009 07:18:04 -0500
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
.
- Follow-Ups:
- References:
- Prev by Date: VBA for Word 2003 - I want to delete a line break that appears
- Next by Date: Re: VBA for Word 2003 - I want to delete a line break that appears
- Previous by thread: "can't find project or library" error has started appearing in VBA running on Word 2003
- Next by thread: Re: "can't find project or library" error has started appearing in VBA running on Word 2003
- Index(es):
Relevant Pages
|