Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting values in more than one excel-cell at a time
Message
From
14/03/2008 08:49:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01301740
Message ID:
01302091
Views:
14
>Hello,
>
>I try to create a general class that must read Excel-Data into a VFP-Cursor and vice versa.
>
>It is no problem to do it on a cell-basis, but it is too slow, especially when putting the values into the sheet.
>
>Is there any way to select a range in Excel and fill all the cells with the values in one step? E.g. to select a whole column as range and put the values from an array one in each cell?
>
>Thanks
>Alexander

Yes, and you need to show top-left cell's address as starting point for insertion. In a template you might name (define name) a range as a location to insert data and refer to that range by name (oExcel.ActiveWorkBook.ActiveSheet.Range("myDataLocation").
Check Re: Exporting to Excel Thread #1278127 Message #1278137
IMHO to and from excel ADO is best approach.
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