I’d like to run outside macro in excel and Studio send me message about error like below.
I use excel file with xlsx extension.
The macros are enable in excel and Excel Process Scope.
It looks like is something wrong with COM:
UiPath.Excel.ExcelException: Interfejs niezarejestrowany (unregistered interface).
—> System.Runtime.InteropServices.COMException: Interfejs niezarejestrowany.
I have no idea how to repair this.
I also use invoke VBA and run macros in other projects and it’s working fine, but these projects are in older version of Studio. Now I use version 2022.10.4 and VBA doesn’t work.
Please send me any ideas.
I tried and result is the same.
I tried to use Invoke code with Excel namespace and it appeared the same problem.
I discovered that I have a problem with COM Microsoft.Office.Interop.Excel.
The Visual Studio and UiPath don’t see Excel namespace.
I’m still fighting, thank you !
So one of the first things that I would try when facing a COM issue is running the repair tool
Other things that would come in handy for us in order to help you would Excel version , packages version ( from the print screen attached I can see that you use Excel 2.16.0 ) and if possible logs and a helper project. I say logs because usually COM exceptions do come with an error code attached and that is helpful for us to try and decipher the old and forgotten language of COM