Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening an excel worksheet from vfp...
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00473619
Message ID:
00473629
Views:
16
>thanx for your patience!
>syntax for opening an excel worksheet from within vfp?
>tia - john

With OLE:
loExcel = CREATEOBJECT("Excel.Application")
loExcel.APPLICATION.Visible = .T.

*-- Open a file
loExcel.APPLICATION.WorkBooks.OPEN("C:\MyFile.XLS")

*-- Close a file
loExcel.APPLICATION.ActiveWorkbook.CLOSE

*--- Excel Quit
loExcel.APPLICATION.QUIT

RELEASE loExcel
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform