"can't find project or library" error has started appearing in 200

P

Peter

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

PeterEvans
 
D

Doug Robbins - Word MVP on news.microsoft.com

Compare the checked items under Tools>References in the VBE for the machines
that exhibit the problem with those that do not.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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