I need to load a csv file into excel with the shell command. My code works fine as long as excel is not already running but if there is another instance of excel open the shell command opens a new excel but does not load the csv file. I have not been able to find any list of command line switches for the shell command and wonder if this is the problem. The code I am using at the moment is
Dim RetVal
RetVal = Shell("C:\Progr am Files\Microsoft Office\OFFICE11 \excel.exe /e .\billcsv.csv", 1)
AppActivate RetVal
The Dim RetVal and AppActivate RetVal don't seem to be necessary.
Any ideas?
Dim RetVal
RetVal = Shell("C:\Progr am Files\Microsoft Office\OFFICE11 \excel.exe /e .\billcsv.csv", 1)
AppActivate RetVal
The Dim RetVal and AppActivate RetVal don't seem to be necessary.
Any ideas?
Comment