Here's my work-around.
The function used to run the batch script:
For my purposes the batch file is created in the same location as the Excel workbook. Just makes things easier. Due to the EXIT command in my batch script the return value will be zero; this is why I don't care about the function's return value.
What's nice about this is that the VBA code will stop executing until the batch script is done (waitOnReturn:=True). Thus the need to close the cmd window using the /c switch (Command:="%comspec% /c "). I ensure this by also using the EXIT command.
HTH.
Bookmarks