Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert a Column in Excel worksheet ?
Message
De
25/02/2010 06:54:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/02/2010 22:44:33
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:
01450904
Message ID:
01450929
Vues:
49
>Hi,
>I have the following program code, and I want to insert a column between D and E, and set a formula in the inserted column,
>how to code it ?
>Please advise,
>
>Thanks
>
>
>oExcel = CREATEOBJECT([Excel.Application])
>oWorkbook = oExcel.Workbooks.open("C:\WTS\MID\WTS77XLS.XLS")
>oExcel.Visible = .t.
>oExcel.activesheet.Range("A1").value = "Client Code"
>oExcel.activesheet.Range("B1").value = "Client Name"
>oExcel.activesheet.Range("C1").value = "Invoice Date"
>oExcel.activesheet.Range("D1").value = "Invoice No."
>oExcel.activesheet.Range("E1").value = "Currency"
>oExcel.activesheet.Range("F1").value = "Invoice Amount"	
>
oExcel.ActiveSheet.Range('E:E').EntireColumn.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