Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Workbook Copying
Message
 
 
To
03/10/2001 15:57:47
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00563845
Message ID:
00563853
Views:
21
I'm not sure what your question is. Are you having trouble saving the file as a different name, or copying the new data into the sheet?

>I am pushing data into a formatted Excel file. Before I push the data into the workbook I am trying to save the workbook as a new file(create a duplicate of the original for the user to modify) and then open it and push the data in it.
>Can someone please point me in the right direction.
>
>loExcel = CREATEOBJECT("EXCEL.Application")
>WITH loExcel
> .Application.Workbooks.OPEN("my path to the template")
> .Application.Save("my path to the new file")
> .ActiveWindow.CLOSE()
> .Application.Workbooks.OPEN("my path to the newfile")
> .Application.Worksheets("sheet1")
>
> *push all the data in
>ENDWITH
>
>-Wes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform