Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert rows in the worksheet ?
Message
De
26/02/2010 07:35:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/02/2010 23:10:53
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01451138
Message ID:
01451196
Vues:
39
>Hi,
>I want to insert 2 rows at the worksheet row 1.
>How to code ? I don't know how to use the offset, please advise.
>
>Thanks.
>Derek

I thought I gave you the solution yesterday (simply EntireRow instead of EntireColumn). ie:
oExcel = CreateObject('Excel.Application')
oExcel.Workbooks.Add()
oExcel.Visible = .t.

oExcel.ActiveWorkbook.ActiveSheet.Range('A1').Value = "This was on row 1"

oExcel.ActiveWorkbook.ActiveSheet.Range('1:1').EntireRow.Insert
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform