Consulting

Results 1 to 3 of 3

Thread: call .bat or .exe file from Excel macro

  1. #1
    VBAX Newbie
    Joined
    Aug 2006
    Posts
    2
    Location

    call .bat or .exe file from Excel macro

    Dear Experts

    i would like to have an idea about how to run file .bat or .exe file from excel macro.

    cheers,

    Pon

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    RetVal = Shell("C:\WINDOWS\CALC.EXE", 1)
    [/vba]

    as an example

  3. #3
    VBAX Newbie
    Joined
    Aug 2006
    Posts
    2
    Location
    it works, thanks

Posting Permissions

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