Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace into excel
Message
De
06/10/2004 01:46:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00948894
Message ID:
00949028
Vues:
15
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform