create Task Pane in MS Office COM add-in using C++

Shabari Pragash 126 Reputation points
2022-03-24T19:26:13.26+00:00

I have created a COM add-in for MS Office using C++. Now I like to add a Task Pane UI to MS Office. I came to know about ICustomTaskPaneConsumer interface and tried to implement it. But documentation is less.

Kindly share some documentation and some sample project codes. Thanks.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | Word | For business | Windows
Microsoft 365 and Office | PowerPoint | For business | Windows
Microsoft 365 and Office | Excel | For business | Windows
Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
{count} votes

Answer accepted by question author
  1. RLWA32 51,361 Reputation points
    2022-03-25T14:50:37.53+00:00

    The documentation for C++ is virtually non-existent. However, I managed to piece together a skeleton C++ Add-in that creates and displays a Task Pane in Excel. The solution contains 2 projects - the addin and an activex control. The projects are configured so that COM registration will be performed per-use when building. It was developed using the 64-bit version of Office 2013 and VS2015. The barest minimum was done to create and show the Task Pane so at best it is a starting point. You can download the project from OneDrive https://1drv.ms/u/s!AmnqrCFBv4nDghcZwI3yqeTaOcBR?e=psnZ44

    Com Addins per Excel -

    187022-comaddin.png

    Task Pane shown in Excel -

    186945-tpane.png


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.