Run/execute VBS and pass arguments

  • Thread starter Thread starter Claud Balls
  • Start date Start date
C

Claud Balls

Is there a way in VBA to run/execute a visual basic script.

I need to do the following:
Test.vbs arg1 arg2

All help is appreciated.
 
Do you have to run the VBS script, or could you embed the VBS in VBA (it is
almost identical)?

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
The .vbs file is very large, and I ran across several errors when I
copied the code into a vba macro.
 
I got it working, I used:

Shell ("cscript //nologo H:\Excel\WritePerms.vbs ACTION=SHOW TARGET=" &
ActiveWorkbook.FullName)
 

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

Back
Top