Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending data to Excel from different tables
Message
From
27/04/2006 10:32:15
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/04/2006 20:57:39
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01116910
Message ID:
01117109
Views:
17
>Using VFP8. I need to append data from 10 differents tables having different structures into 1 Excel sheet. anyway to do this other than inserting a cell at the time?

I'm also using _vfp.DataToClip(,,3) - though I'm usually removing the header line from _cliptext, as my field names would just confuse the end user - I usually have template sheets and paste into predefined areas, which already have neatly formatted header rows. Something like this:
set memowidth to 1023
cFirstLine=mline(_cliptext,1)
_cliptext=strtran(_cliptext, cFirstLine+chr(13),"")
oRange.PasteSpecial()
Now the "multiple tables" part begs knowing some details: do they need to be on the same page (in which case you may have to consolidate them into a single cursor first), or can they be one page at a time. In the latter case, Naomi's way is the simplest.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform