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.