Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Excel from VFP App
Message
From
05/05/2006 18:28:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/05/2006 16:41:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01119766
Message ID:
01119803
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform