Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace into excel
Message
From
05/10/2004 16:21:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00948894
Message ID:
00948924
Views:
19
hi,

if i cange the fiel,and table as under it works,
ObjExcel= CREATEOBJECT("Excel.Application")
with ObjExcel
     .Workbooks.open(yourfile)&& you mean book name  
      lcRange="A2"  &&starting cell
      .Range(lcRange).Select
     .Rows(TRANSFORM(.ActiveCell.row)+":"+TRANSFORM(.ActiveSheet.UsedRange.Rows.Count)).Delete  &&remove all data

     use gg
     _VFP.Datatoclip(,,3)
    .ActiveSheet.Paste()
thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform