From the course: Microsoft Office Add-Ins for Developers

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Add-in commands

Add-in commands

From the course: Microsoft Office Add-Ins for Developers

Start my 1-month free trial

Add-in commands

- [Instructor] We mentioned that there are different add-in shapes or extension points, such as the content and task pane add-ins. A third type, which was added fairly recently, is a command add-in. This type gives you a command button in the ribbon that allows a user to proactively invoke some functionality. That might make a task pane appear, for example. Or it might just run some JavaScript silently in the background with no user interface at all. It's up to you. The best time to use these is when you have a clear and specific action you want to allow the user to perform. Command add-ins are relatively new and require the Office 2016 version for the native client applications. The online versions are always up to date, of course. They use a section of the manifest that we didn't see in the last example, which is called version overrides, which contains an element called extension point. Each of the control sections maps to one of these buttons, and if you have sub menus, you need…

Contents