My VSTO application has a ribbon which run VBA macro in active workbook, and a message dialog that displays the result of macro.
Usually, macro runs fine and the result correctly displayed in the dialog.
But once the macro contains ActiveWorkbook.Close, running macro will throw exception(0x800A9C68).
In my code, macro is called as c# - How to Call Excel VBA functions from VSTO Application addin - Stack Overflow suggested.
Any help will be appreciated! Thanks,