Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting data to formatted EXCEL
Message
From
04/07/2003 05:48:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00806875
Message ID:
00806903
Views:
11
This message has been marked as the solution to the initial question of the thread.
>Hi guys...
>
>I have this kind of problem..
>I already have a formatted EXCEL with the line, border even a formula..
>but my difficulty is to enter the value in a column that i've to export from VFP table...
>
>Can any body help me about this...
>
>thx

Tut,
Copy your values for that column to clipboard, in excel paste (using automation I mean). ie:
lcTempFile = sys(2015)+'.tmp'
copy fields ColumnToUpdateInExcel to (lcTempFile) type SDF
_clipText = FileToStr(lcTempFile)
erase (lcTempFile)

lcXLS = 'c:\myPath\Existing.xls'
oExcel = createobject('Excel.Application')
with oExcel
 .Workbooks.Open(lcXLS)
 * Assuming would update D column starting at row 2
 .ActiveWorkbook.ActiveSheet.Range('D2').PasteSpecial()
 .Visible = .t.
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform