>>>I have found this code in a VFP program - it only works on 1 machine in the network - do I need to install software on the other machines - if so what?
>>>
>>>
>>>oXLS = thisform.OleControl1.object.document
>>>oExcel = oXLS.Application
>>
>>It will error out on any machine which doesn't have excel installed. You can search UT for ways to check whether it is, and simply refuse to run this form if it isn't.
>
>all machines have excel installed
>
>but I will double check - thanks
Then I dunno why it wouldn't work on others. Perhaps you may need to check the form, the properties of the OLE object - it may be bound to a specific version of excel, which is just a WAG. I've never actually included any Office box in a form, always as a standalone object.