Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to export a report to Excel
Message
From
07/07/1998 14:54:18
 
 
To
07/07/1998 14:49:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00115021
Message ID:
00115024
Views:
19
>I used the following code to open an Excel Sheet.
>
>objExcel = create("Excel.Sheet")
>
>objExcel.Cells.Column = 1 && try to locate the cell to post value
>objExcel.Cells.Row = 2
>.....
>
>When objExcel.Cells.Column=1 is executed, it generates VFP.exe error and shuts off the VFP.
>
>How can I locate the Excel Cells to post value?

Something like objExcel.Cells(1,2).value="..."
However, if you want to send data from VFP to Excel, it's much faster to use COPY TO or EXPORT command, and then open file in Excel using OLE if necessary.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform