Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Workbook Copying
Message
From
03/10/2001 15:57:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Excel Workbook Copying
Miscellaneous
Thread ID:
00563845
Message ID:
00563845
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform