Need a VBA Macro to run or call a batch file?
Quick and easy way to call batch file via macro or VBA is to use the shell command.
Here's the example below:
Shell ("path to the batch file", window_style_paremeter)
Code snippet:
Shell ("d:\StopProcess,bat", vbHide)
Shell ("d:\StopProcess,bat", vbNormalFocus)
Comments
Post a Comment