Problem found.
I inserted the function using the Events button on the script editor dialog, so the signature was correct. Unfortunately, I placed a number of MsgBox calls throughout the function but failed to add one as the first line. I was failing in my attempt to create a Shell object (operator error!) and hence was never hitting my first MsgBox. My fault completely. Your sample was helpful because I just replaced my vbld_BuildDone function with yours which of course worked.
Regards,
Bill
|