I've read what has been archived about this topic and am trying this line of code:
Call Shell("C:\Win32App\MSOffice\Office\EXCEL.EXE" & Chr(34) & "c:\DeleteMe\" & strComboClient & "_Chart.xls"
The "strComboClient" is a variable passed from a combo box that builds a name for each spreadsheet. I can build the filename--I just can't seem to launch Excel and open the worksheet file.
Here's the error that I keep getting: "5 Invalid procedure call or argument."
Call Shell("C:\Win32App\MSOffice\Office\EXCEL.EXE" & Chr(34) & "c:\DeleteMe\" & strComboClient & "_Chart.xls"
The "strComboClient" is a variable passed from a combo box that builds a name for each spreadsheet. I can build the filename--I just can't seem to launch Excel and open the worksheet file.
Here's the error that I keep getting: "5 Invalid procedure call or argument."