You receive a "Can't find project or library" error message when you run a VBA project (840926)
The information in this article applies to:
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
SYMPTOMSIn Microsoft Office XP, you may use the Web Service
References Tool that is included with the Microsoft Office XP Web Services Toolkit
2.0 to add a reference to a Web service
in a Visual Basic for Applications (VBA) project. When you try to run this project in Microsoft Office 2003, you may
receive the following error message: Compile
error: Can't find project or library CAUSEIn Office XP, the VBA project contains a reference to the
Microsoft SOAP Type Library 3.0. However, Office 2003 uses the Microsoft
Office SOAP Type Library 3.0 instead of the Microsoft SOAP Type Library 3.0.
If VBA cannot locate the Microsoft SOAP Type Library 3.0 on your
computer, the behavior that is mentioned in the "Symptoms" section
occurs.WORKAROUNDTo work around this problem, add a
reference to the Microsoft Office SOAP Type Library 3.0 in the VBA project. To do this, follow
these steps:
- In the VBA editor,
click References on the Tools menu. The References - VBAProject
dialog box appears.
- Click to clear the MISSING: Microsoft SOAP Type
Library v3.0 check box.
- Click Browse. The Add
Reference dialog box appears.
- Locate and then click the Mssoap30.dll DLL that is included
with Office 2003, and then click Open. A
reference to the Microsoft Office SOAP Type Library 3.0 is added in the
References - VBAProject dialog box.
- Click OK, and then run the project.
STATUS This
behavior is by design.REFERENCESFor more information, visit the following the Microsoft
Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 2/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kberrmsg kbUpgrade kbWebServices kbprb KB840926 kbAudDeveloper |
---|
|