J
John Gunn
I have a vbs script that I'm trying to run from a vba subroutine in excel
using the "shell" function:
cmdstr$ = "cscript w:\simtemp\ctd.vbs"
retval = Shell(cmdstr$, vbMaximizedFocus)
When this executes, the cscript window opens but the script doesn't run.
However when I open a command shell and manually start the script it runs
fine:
Shouldn't this work or am I missing something?
Thanks
John
using the "shell" function:
cmdstr$ = "cscript w:\simtemp\ctd.vbs"
retval = Shell(cmdstr$, vbMaximizedFocus)
When this executes, the cscript window opens but the script doesn't run.
However when I open a command shell and manually start the script it runs
fine:
Shouldn't this work or am I missing something?
Thanks
John