D
dave h
Hi,
I have linked an Excel file to my application and it works well with DAO
recordset coding. However, I'd like the user to be able to click a button
on a form and bring up Excel. And, I'd like Excel to automatically display
a specific .xls file. This code solves part of the problem:
Dim retval
retval = Shell("C:\Program Files\Microsoft Office\OFFICE11\excel.exe",
1)
However, I have to put the worksheet (.xls file) in C:\Program
Files\Microsoft Office\OFFICE11\XLSTART. This is not the best solution for
multiple files and ease of deployment (I'd like it in the same directory as
the db).
So, is there a way to supply some kind of paramater to excel.exe to cause it
to open the .xls file of my choice (and in my db directory) ?
Thanks, Dave H.
I have linked an Excel file to my application and it works well with DAO
recordset coding. However, I'd like the user to be able to click a button
on a form and bring up Excel. And, I'd like Excel to automatically display
a specific .xls file. This code solves part of the problem:
Dim retval
retval = Shell("C:\Program Files\Microsoft Office\OFFICE11\excel.exe",
1)
However, I have to put the worksheet (.xls file) in C:\Program
Files\Microsoft Office\OFFICE11\XLSTART. This is not the best solution for
multiple files and ease of deployment (I'd like it in the same directory as
the db).
So, is there a way to supply some kind of paramater to excel.exe to cause it
to open the .xls file of my choice (and in my db directory) ?
Thanks, Dave H.