Hi,
Invoke VBA: Exception from HRESULT: 0x800AC472
I get this error. What do you think is the solution?
In my previous project, I was getting an error in the invoke vba section, and I mentioned it below.
Invoke VBA: Unable to run macro ‘GetColumnsCount’. The macro may not be in this workbook, or all macros may be disabled.
@Duygu_Ozdemir
You can check this topic and check loop code in your VBA.
The only way around that is going to be to make your object model call from a loop. You will need to continue to retry the call until it succeeds–so you’ll set a success bit right after the call and then have an exception handler that catches (and eats) the 0x800AC472 exception which allows the loopback to continue.