+ Reply to Thread
Results 1 to 4 of 4

Run/execute VBS and pass arguments

  1. #1
    Claud Balls
    Guest

    Run/execute VBS and pass arguments

    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.



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

  2. #2
    Bob Phillips
    Guest

    Re: Run/execute VBS and pass arguments

    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)


    "Claud Balls" <[email protected]> wrote in message
    news:%[email protected]...
    > 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.
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!




  3. #3
    Claud Balls
    Guest

    Re: Run/execute VBS and pass arguments

    The .vbs file is very large, and I ran across several errors when I
    copied the code into a vba macro.


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

  4. #4
    Claud Balls
    Guest

    Re: Run/execute VBS and pass arguments

    I got it working, I used:

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



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1