Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open Excel Spreadsheet
Message
 
 
To
03/04/2003 07:41:33
Irv Adams
MSC Managed Care, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00773477
Message ID:
00773491
Views:
9
>Hi All:
>
>Just looking for a code snippet to open an Excel Spreadsheet from within Fox. After it's open the User can have control, all I want to do is Browse for it and open it for them.
>
>Much Thanks !

Hi Irv,

You can use WSH http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsMthRun.asp
oShell = CREATEOBJECT('WScript.Shell')
lcExcelFile = GETFILE("XLS")
IF NOT EMPTY(lcExcelFile)  
  oShell.Run(lcExcelFile)
ENDIF
or ShellExecute API #12636.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform