Using InvolkeVBA activities

Hello everybody!

I need to use the InvokeVBA activity however the error below is displayed. In Excel I already made the configuration to work with Macro, but the error continues.
Can anyone help?

Mauro Morais

RemoteException wrapping System.Runtime.InteropServices.COMException: Programming access to Visual Basic project is not trusted

at UiPath.Excel.Activities.InvokeVBA.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)


Hi @mauro.morais1,

Have you tried this: vba - Programmatic Access To Visual Basic Project Is Not Trusted - Stack Overflow ?

If it solves your problem, kindly mark this answer as the solution.