Excel Macro - Privacy Warning Alerts

I am executing a macro using Invoke VBA/Execute Macro and getting below error.

Tried to handle checking element exixt and then clicking on ‘OK’ button in parallel activity but it’s not working.

Request expert to suggest the approach.

1 Like

@p4uk80
Did you try to turn off the DisplayAlerts in Excel macros.??

https://docs.microsoft.com/en-us/office/vba/api/excel.application.displayalerts

2 Likes