Monday, July 23, 2012

Run an .exe file through VBA





Sub test_shell()

Dim program As String, taskid As Integer

program = "C:\Windows\notepad.exe"
taskid = Shell(program, vbNormalFocus)


End Sub

1 comment:

  1. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.
    vba course london

    ReplyDelete