Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace into excel
Message
From
06/10/2004 01:46:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00948894
Message ID:
00949028
Views:
14
hi,

i try to excute the code i get error message
&& my excle book name is testt,i want to put mydata from vfp.dbf at first sheet,
&&my table name is (dncnew.dbf )
*****************************************
ObjExcel= CREATEOBJECT("Excel.Application")
with ObjExcel
     .Workbooks.open(d:\testt)&&error message Unrecognized command verb 
      lcRange="A2"  &&starting cell
      .Range(lcRange).Select    &&error message OLE error code 0x800a03ec unknown com status code
     .Rows(TRANSFORM(.ActiveCell.row)+":"+TRANSFORM&&Member "name" does not evaluate to an object 
(.ActiveSheet.UsedRange.Rows.Count)).Delete  &&remove all data

     use dncnew
     _VFP.Datatoclip(,,3)
    .ActiveSheet.Paste()
    endwith
     
thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform