The lines:
Code: Select all
iRC = oShell.Run("""" & sFileName & """", 1, True)
Code: Select all
iRC = oShell.Run("""" & "C:\Program Files (x86)\OpenOffice 4\program\scalc.exe" & """", 1, True)
work OK, where sFilename is the xls file I wish to open.
However, I have not been able to find a way to combine them so that Calc opens and then loads sFileName
Does anyone have any suggestions?