T
tygerc
hi, all
I'm trying to invoke a vbscipt from within a word macro.
I'm using
RetVal = Shell("C:\docs\binfile.vbs", 0)
however, this gives me an error:
" Run-time error '5':
Invalid procedure call or argument"
Does anyone know how to do this.. if I replace the path of vbscript
with an EXE file, it works fine.. and if I call the vbscript frm the
command line. it also works fine. thanks..
I'm trying to invoke a vbscipt from within a word macro.
I'm using
RetVal = Shell("C:\docs\binfile.vbs", 0)
however, this gives me an error:
" Run-time error '5':
Invalid procedure call or argument"
Does anyone know how to do this.. if I replace the path of vbscript
with an EXE file, it works fine.. and if I call the vbscript frm the
command line. it also works fine. thanks..