Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

String manipulation error

Status
Not open for further replies.

wlaflamme

Mechanical
Joined
Oct 25, 2005
Messages
4
Location
US
Hello,
I am having trouble with a string manipulation. I know this works on my computer but when I bring it to another computer to perform the string manipulation it displays an error message. Here is the callout

bufferin2 = Left(Right(bufferin1, 8), 6)

Here is the error message:

Compile Error
Can't find project or library.

Ant recommendations

 
I'll give you the "standard" answer but this may or may not be the problem.

In the VBE, select Tools|References. In the dialog that displays you should see something like the following libraries checked (these are the minimum libraries that should be present):
Visual Basic For Applications
Microsoft Excel x.x Object Library
OLE Automation
Microsoft Office x.x Object Library


where x.x depends on the versions of Office & Excel (for Office 2000 this is 9.0).

The Left & Right string functions are in the Visual Basic For Applications library.

Look specifically for any library that is prefaced with the word MISSING


Hope this helps,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top