Results 1 to 2 of 2
2002-10-03, 21:37 #1
- Join Date
- Jan 2001
- Wellington, Wellington, New Zealand
- Thanked 0 Times in 0 Posts
Can't find project or library (Word97 (NT))
I have a document that contains a macro, but when it runs I get "Compile error. Can't find project or library. Are any references missing". The error is caused by a simple mid$() statement. If I remove it, the error doesn't occur. If I copy the line of code to a new document, I don't get the error.
How do you identify which reference is missing?
PS: KB Article Q244788 relevant isn't relevant.
2002-10-04, 07:28 #2
- Join Date
- Mar 2002
- Thanked 29 Times in 29 Posts
Re: Can't find project or library (Word97 (NT))
To find out about references: open the Visual Basic Editor (Alt+F11) and select Tools/References... The active references are checked. For Word 97, they are (usually):
Visual Basic For Applications
Microsoft Word 8.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft Office 8.0 Object Library.
If any of these says MISSING, your Office installation may be damaged. If there is another checked reference saying MISSING, try unchecking it and see what happens.