+ Reply to Thread
Results 1 to 3 of 3

Compile error: Can't find project or library

  1. #1
    Trefor
    Guest

    Compile error: Can't find project or library

    I have been testing without any issues on one computer, when I ran my code on
    another computer I got this error. What's more strange is that it is
    complaining about the LEFT command.

    If Dir(Left(MainPath, 3), vbDirectory) = "" Then

    just to test, I removed the LEFT statement:

    If Dir(MainPath, vbDirectory) = "" Then

    and it worked fine, but stopped on the next LEFT.

    If Len(MainPath) = 3 Then MainPath = Left(MainPath, 2)


    Any ideas?
    --
    Trefor

  2. #2
    Trefor
    Guest

    RE: Compile error: Can't find project or library

    Ok, more research and I founf the a MISSING reference for "Microsoft Outlook
    11.0 Object library"

    Why would this affect the Left command?

    Why would this be missing on another computer?

    How do I fix this?

    --
    Trefor


    "Trefor" wrote:

    > I have been testing without any issues on one computer, when I ran my code on
    > another computer I got this error. What's more strange is that it is
    > complaining about the LEFT command.
    >
    > If Dir(Left(MainPath, 3), vbDirectory) = "" Then
    >
    > just to test, I removed the LEFT statement:
    >
    > If Dir(MainPath, vbDirectory) = "" Then
    >
    > and it worked fine, but stopped on the next LEFT.
    >
    > If Len(MainPath) = 3 Then MainPath = Left(MainPath, 2)
    >
    >
    > Any ideas?
    > --
    > Trefor


  3. #3
    Tom Ogilvy
    Guest

    RE: Compile error: Can't find project or library

    Remove the reference or fix it using the browse button in the references
    dialog.

    --
    Regards,
    Tom Ogilvy



    "Trefor" wrote:

    > Ok, more research and I founf the a MISSING reference for "Microsoft Outlook
    > 11.0 Object library"
    >
    > Why would this affect the Left command?
    >
    > Why would this be missing on another computer?
    >
    > How do I fix this?
    >
    > --
    > Trefor
    >
    >
    > "Trefor" wrote:
    >
    > > I have been testing without any issues on one computer, when I ran my code on
    > > another computer I got this error. What's more strange is that it is
    > > complaining about the LEFT command.
    > >
    > > If Dir(Left(MainPath, 3), vbDirectory) = "" Then
    > >
    > > just to test, I removed the LEFT statement:
    > >
    > > If Dir(MainPath, vbDirectory) = "" Then
    > >
    > > and it worked fine, but stopped on the next LEFT.
    > >
    > > If Len(MainPath) = 3 Then MainPath = Left(MainPath, 2)
    > >
    > >
    > > Any ideas?
    > > --
    > > Trefor


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1