Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Automation
Message
 
À
20/01/2004 22:10:59
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00868829
Message ID:
00869159
Vues:
12
The easiest way is to record a macro in Excel, observe the macro code and translate it to VFP. In your particular case, try something like:

ObjExcel.Selection.EntireRow.Insert
*Insert into column 4 cell :
objexcel.activesheet.cells(ObjExcel.Selection.Row,4).value="HELLO"



>oExcel = CREATEOBJECT('Excel.Application') will create an Excel object, but how to I find out the possible command to use with that object.
>
>I have seen a few, but I how do I find a list of all or some type of documentation.
>
>For example
>oExcel.Workbooks.Add
>oExcel.ActiveSheet.RANGE('A1').SELECT
>oExcel.ActiveSheet.Paste()
>oExcel.visible = .T.
>
>How do I insert a new top row into an existing XLS and populate one cell of that new row?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform