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!

Running Excel Shell

Status
Not open for further replies.

Reggie2004

Technical User
Oct 4, 2004
45
US
I need the code to run an Excel Shell. I have the one for Word ("WScript.shell"). I want to run a spreadsheet with a macro from access. This is the code.

Public Sub excel_filter_Click()

On Error GoTo Err_excel_filter_Click
Set Sh = CreateObject("WScript.Shell")
Sh.Run "C:\Documents and Settings\RDKIRB49\desktop\filter with macro.xls"

Exit_excel_filter_Click:
Exit Sub

Err_excel_filter_Click:
MsgBox Err.Description
Resume Exit_excel_filter_Click

End Sub

Please help...........
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top