Macro didnot Work as Expected when the BOT Run

Macro didnot Work as Expected when the BOT executed, but when I run The macro manually it works as expected.

Any advice?

1 Like

Hi @Vincent_Nuestro

Please check in debug mode and share the error screenshot.
Thanks

@Vincent_Nuestro

Check all necessary permissions given or not.

and follow below tutorial whether you are following all necessary things are not

hi my other macros is working properly, i only have the problem in my A_SMICR macro

Then you need to check correct macro is mapped or not

It could be a timing or permissions issue. Try adding delays in the macro to ensure elements are fully loaded before execution.

i added 30sec Delay Before and After, same issue. I found the same error/scenario

1 Like

what is the error message you are getting and please share your macro

Hi @Vincent_Nuestro

Then try to use Invoke VBA, save your macro code as a .vbs or .txt file, then use the Invoke VBA activity in UiPath to point to that file. This allows you to execute the macro directly within UiPath, offering better control and flexibility compared to the Execute Macro activity.
If you found helpful, mark as a solution. Thanks

Hi @Vincent_Nuestro

use parallel activity, In this activity you can add run macro activity and take screenshot activity if any error occurs while running macro and add delay activity also

if you run parallel activity all workflow executing at a same time if any error find then catch the screenshot if not then flow working smoothly.

Thanks
shaik

no error, There is missing data when the bot Trigger the macro, but when I trigger the macro manually i get the complete data

Can you delete your macro and create new macro and as well delete the activity and re implement your logic and try.