Benoit,
The only other thing I can think of is do you have the VFP runtime installed on the second computer? I would think your ofox object will need the VFP libraries just like an EXE would.
Barbara
>Thank you for your help Barbara...But the problem is somewhere else !!
>
>Excel is installed on the client machine and it's the same version as the developpement machine (both computers are mine but one of them doesn't have VFP installed !!). I think it has the right path because when I call Excel from my application, Excel starts and create my FoxPro object : oFox ...When I do oFox.DoSomething() , I have the error message.If I click on debug button, I can see my VBA code and the line where the error is. At this moment Excel is open but my code doesn't work !
>
>Do you still think my path can be wrong ??...
>
>Any ideas ??
>
>Thanks again !
>
>Benoit Grenier.