What exactly is not working correctly? Can you create the Excel object? Can you open the spreadsheet?
>I have an application where I am linking out from VFP to MS Excel with code as below:
>OLEAPP = CREATEOBJECT("Excel.Application")
>OLEAPP.VISIBLE=.T.
>OLEAPP.WORKBOOKS.OPEN("POSTEDMARKS1.XLS")
>OLEAPP.CELLS(1,2).VALUE="Students"
>etc.
>etc.
>
>The application works beautifully on my development machine but when I compile the .exe and put it on another machine, it doesn't work.
>
>I have gone through the VFP Help File to see how I might Build the Project differently or use the SetUp Wizard differently to address this but I can't find anything that deals with my situation.
>
>If someone has crossed this bridge before, I would be pleased to hear from you.
>
>Mike Smith
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer