Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE error code export to Excel..
Message
From
21/04/1999 16:32:13
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00210740
Message ID:
00210744
Views:
99
>I was looking for a quick export to Excel from a VFP 6.0 table. Found the code listed below on another threat by Christof Lange. If I import a Paradox file to a VFP 6.0 table and then run the code BINGO! It runs like a champ.
>
>But if I use just the VFP table I get the following message "OLE error code 0x800a03ec: Unknown COM Status code
>
>Anyboby out there know the error of my ways.
>
>Sorry for such a rudimentary question, but it's new territory time.
>
> Thanks
> CMH
>
>The code I found on the thread
>
>_VFP.DataToClip(,,3)
> oExcel = Create("Excel.Application")
> oExcel.Workbooks.Add()
> oRange = oExcel.Range("A1",Chr(65+FCount()-1)+Alltrim(Str(RecCount())))
> oRange.PasteSpecial()
> oExcel.Visible = .T.
There's COPY TO myxl.xls TYPE XL5.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform