I'm trying to run a compiled Fortran code from excel. The DOS window shows up briefly, but nothing happens - it should create a few output files. I checked using explorer and it as accessed the file at that time.
Obviously, I've clicked on the .exe and it works fine on its own.
So I made a .bat file that runs the .exe. and called that from excel, just to see...same thing. However if I double click on the .bat file on its own no problem.
Any clues? It seems like Excel isn't allowing the program time to finish and cutting off early?
Here's what I use to execute files in excel:
"ReturnValue = Shell(ThisWorkbook.Path & "\testy.bat", 1)"
any help very gratefully received
thanks
Obviously, I've clicked on the .exe and it works fine on its own.
So I made a .bat file that runs the .exe. and called that from excel, just to see...same thing. However if I double click on the .bat file on its own no problem.
Any clues? It seems like Excel isn't allowing the program time to finish and cutting off early?
Here's what I use to execute files in excel:
"ReturnValue = Shell(ThisWorkbook.Path & "\testy.bat", 1)"
any help very gratefully received
thanks