Hi,
I have a friend who is trying to run a VBA macro which should run a bat file.
The code below works:
Sub TestShell() Dim RetVal RetVal = Shell("C:WINDOWSsystem32CALC.EXE", 1) ' Run Calculator. End Sub
But this fails on his windows vista/Office 2003 setup, where it used to work on a different system (don’t know the specs unfortunately):
Sub TestShellWithBAT() Dim RetVal ChDir ("C:Ftrade") RetVal = Shell("otherfunds.bat", 1) End Sub
Any idea what gives?