×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

String manipulation error

String manipulation error

String manipulation error

(OP)
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

RE: String manipulation error

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

RE: String manipulation error

(OP)
Thanks. That was it!!!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources