How to handle execute marco run time error in Uipath

Hi All,

I would like to know how to handle Run time error while processing execute macro.
I have to click End button and stop the marco
Can anyone help me

Runtime errors from the macro should be handled in the macro itself.

You can handle errors by using goto in the code and return the error description to the uipath workflow.

For example:

Function Test() 

    On Error goto Err_Handler

    Test = Err.Description

End Function
1 Like


You can handle using Parallel Activity. The Left side put execute marco. right side put element exist of the run time error Popup in then sequence put click activity

make sure parallel activity Condition set as True

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.