Thanks for the prompt reply. I tried to add a 3rd condition to the script and it didn't turn out too well.
So, from what I understand, the for loop tries to find the Arr(0) first. Then if Rng isn't empty, it will put value into cell B4. Then it tries Arr(1). However, now I need a third condition, a case where both "normal termination" and "error termination" aren't found.
Is this what I should add? If so, where should I add this?
PHP Code:
Else
.Range("B4").Value = "This analysis was not completed/ interrupted. Please rerun or discard."
Bookmarks