Does anyone know if there is a way to capture an error code generated from a shelled VB application? In C the equivilant is return(0) or exit(0) - which would return 0 for the error number. I can use the Err.Raise to return an error, but this application will shell, execute, then close without any user intervention - if I use the Err.Raise I will get a popup and the process doesn't clear from memory. Any help would be appreciated.