Closed Berry68 closed 5 months ago
The Excel sample 09 works.
Microsoft® Excel® for Microsoft 365 MSO (Version 2407 Build 16.0.17730.20000) 32-bit
I've run the Excel sample 09 on a different laptop and it works. I've also tried running the same sample on 2 other laptops and on those laptops it still fails with the above mentioned Exception. All 3 laptops have Microsoft Office 365 (Version 2405 Build 17628.20110) and are running the exact same sample executable.
What could be causing the Exception? It happens when the code is adding the ClickEvent handler. If I remove this code then the sample is able to start Excel and adding the commandBarPopup's and commandBarButton.
In that case you must contact Microsoft Support to resolve issue with your Windows and/or Office.
I'm trying to run the Excel Examples and I am facing a problem with Example09 when connecting to Microsoft Excel 365.
When a new CommandBarButton is added (either to a CommandBarPopup menu or a CommandBar) and the ClickEvent is about to be added, an Exception occurs with the following StackTrace: