How to implement a simple add-in for MS Excel on C

2019-05-29 11:04发布

问题:

I need a help for implementing add-in for Excel 2010 or higher on C++, the only functionality of this add-in is renaming of current Excel sheet.

The add-in should create new custom tab on the Ribbon with name: “Test Add-in”, this tab contains group with name “My Functionality”, this group contains large button with some picture with name “Rename Current Sheet”. After clicking on the button, I should show the following dialog:

User can enter new name, click ok and after this, the name of current sheet will be changed.

I understand that I need to use #import directive for getting references to Office API, use ATL to wrap COM objects, MFC or WTL to create dialog, but I I'm not opposed to using the mentioned methodologies.

回答1:

I've implemented the add-in by following this article



标签: c++ excel mfc com atl