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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I export an Excel file using an an Access macro

Status
Not open for further replies.
Jun 4, 2003
58
US
I tried using the RunApp option it gives, but that will only allow a .exe file to open. Any advise will help, thanks.
 
Here is the code that I used, but it keeps coming back with errors...

Private Sub Command84_Click()
On Error GoTo Err_Command84_Click

Dim stAppName As String

stAppName = "Excel.exe U:\Dept Shared Data\Loss Prevention\reports.xls"
Call Shell(stAppName, 1)

Exit_Command84_Click:
Exit Sub

Err_Command84_Click:
MsgBox Err.Description
Resume Exit_Command84_Click

End Sub

Any help will be great!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top