Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel not opening up with shell function (A2K runtime)

Status
Not open for further replies.

jancheta

Programmer
Joined
Aug 30, 2002
Messages
51
Location
US
Hi.

Any ideas where EXCEL will not open up with the shell function?
Here's my code:
dim s_file as string, retval as variant
s_file="c:\test\excel file.xls"
retval = Shell("EXCEL " & Chr(34) & s_file & Chr(34), 3)

When I run this on A2K full version or AccessXP, it works fine. On the users PC which has the A2K run-time version, nothing happens even though they have Excel 2000.

Or is there another way of opening a workbook from within access?

TIA!

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top