I am trying to run VBA script that will execute particular shell program with arguments retrieved from Excel Spreadsheet.
I'd like to exeute the command n times for n rows in spredsheet, yet have it all in one cmd.exe window. Is that achievable?
I am doing such steps:
1.Creating shell object:
Set wsh = VBA.CreateObject("WScript.Shell")
2.Iterating trough all rows in Spreadsheet and calling for each:
wsh.Run("Command with row specific args", 1, true)
As the result I have n console windows opened for n processed rows. Is there any way to avoid it?
Help appreciated.