Sounds like your user has a missing library, nothing to do with your code.
Get them to compile the project, then go to Tools > References and in the
list of checked libraries, see if any of them start with the text "MISSING".
If so, this is your problem. Hopefully it'll just be a library versioning
issue; If so, get them to:
1) uncheck the 'Missing' Library reference
2) close the references window
3) re-open the references window and search for the same library name that
was missing and check it
4) Recompile and run
If you didn't find any library starting with the text "MISSING", sometimes
just compiling the project won't show this up. Try running the code until you
see the error, then end the code and check the references again.
If again, no libraries appear to be missing, check that all the libraries
that are checked, actually exist on the location specified in the window when
you select each library.
Hope that helps!
Please rate this post if it proved useful.
Thanks,
Chris
www.ProfessionalExcel.com
"Hennie Neuhoff" wrote:
> Hi Guys
> My workbook was sent to a remote computer. The code on the remote
> computer works fine untill there's a Chr(13) in the code [of which there
> are many]. It display the following:
> "Compile error can't find project library"
>
> I can't explain this to the user as it's working fine on my side.
> Could it be some setting on his computer ??
> Any pointers would be appreciated
> Ex. Of code:
> If Range("SpinsOnAf").Value > 3 Then
> MsgBox "Daar is nou reeds " & Val(Range("SpinsOnaf")) _
> & " onafgehandelde Spuitinstruksies" & Chr(13) _
> & "Dis onaanvaarbaar hoog, jy moet 'n plan maak" & Chr(13) _
> & "Jou rekords raak uiters onakkuraat", vbCritical
>
> --
> HJN