invoke vbscript from within a word macro

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.. thanks..
 
Top