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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top