@Ian – you might want to reconsider the use of the VBScript call given Microsoft's plans to depreciate and eventually remove VBScript.
So far I have managed to use
More information on it and waiting to finish is here:
https://learn.microsoft.com/en-us/office/vba/access/concepts/windows-api/determine-when-a-shelled-process-ends
So far I have managed to use
CreateProcessA
instead, assuming that won't be affected in the same way... As opposed to using a Shell
command, CreateProcessA
does have options to wait until completed.
More information on it and waiting to finish is here:
https://learn.microsoft.com/en-us/office/vba/access/concepts/windows-api/determine-when-a-shelled-process-ends