Hi I was testing something with macros using the invoke VBA Excel activity, I enabled Macros as shown in the screenshot
And I’m still getting the error, for context im trying to copy paste a table from an xlsb file to another.
I tried opening Excel as an admin and the settings are the same
This is the error I get:
Invoke VBA: In order for this activity to work, Trust Access to the VBA project object model must be enabled from Excel (File > Options > Trust Center > Trust Center Settings > Macro Settings > Select the Trust Access to the VBA project object model check box)
Hi @FilipeChiou
First check manually macro is working or not then
make sure Excel file is not opened before running the bot close all Excel processes then open Excel manually as admin and enable trust access to VBA project object model then run UiPath studio as admin and run workflow
@FilipeChiou
What’s the error you are getting?
Try converting the file to .xlsm and not .xlsb
I cant do that it has to be in xlsb file
This applies in xlsm, I tried running invoke vba activity with xlsm files and it worked, however when turning to xlsb files it seems to have this error
Hi yes, I already tried that and still same error unfortunately
@FilipeChiou,
Ohh ok. I missed the xlsb extension part from your question.
Invoke VBA can’t run macro in .xlsb type file.
Workaround?
- You can convert the xlsb to xlsx
- Execute the macro
- Again convert it back to xlsb