Hello Wole,
I have not written any VB code for more than 10 years now, so unfortunately, I do not have a good ShellExecute/Wait function for VB available.
But the following link demonstrates how to use ShellExecuteEx and the "Wait" option:
http://files.codes-sources.com/fichi...in.bas&lang=en
Friedrich