Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running Excel from VFP App
Message
De
05/05/2006 18:28:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/05/2006 16:41:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01119766
Message ID:
01119803
Vues:
17
>Hello every body....
>
>I wonder to know how can I runnig Excel, open an especyfic file and change the column format from a VFP aplication.
>
>TIA.
oExcel = createobject("Excel.application")
with oExcel
 .Workbooks.Open("c:\my fullpath\myexcelfile.xls")
 .visible = .t.
 .ActiveWorkBook.ActiveSheet.Range("C:D").Numberformat = "yourformathere"
endwith
This is a very simple sample to open an exusting excel file and format columns C,D.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform