OriginalGriff wrote:
It still has
On Error Resume Next
- so it's still garbage.
Not knowing how to code doesn't make the language garbage it makes the coder garbage. :laugh: This is not knowing how to code:
On Error Resume Next
objShell.Run strRunCmd, 1, True
This is how to handle the error properly and reset properly:
On Error Resume Next
objShell.Run strRunCmd, 1, True 'True means wait for the app to exit before continuing the script
If Err.Number <> 0 Then
ErrMsg Err.Number, Err.Description, "Error with objShell.Run [" & strRunCmd & "]", True
End If
On Error GoTo 0