
add an assembly reference to the project.copy the corresponding interop assembly to the Interops folder of your project folder,.For every chosen application, the project You can choose one or more Microsoft Office applications in the above window. Word, Excel and PowerPoint, we are selecting these three apps. Since we want our plugin to work in Microsoft The wizard allows creating add-in projects targeting several Office applications. If you need background information, seeĬhoose your programming language and the minimum Office version that you want to support and click Next. If you are in doubt,Ĭhoose Microsoft Office 2000 as the minimum supported Office version. Later on youĬan replace interop assemblies and reference them in your project. We are going to chooseĬhoosing a particular Office version will add corresponding interop assemblies to the project. Programming language (C#, VB.NET or C++) and specifying the oldest Office version your plugin needs to support. This starts the COM Add-in project wizard. In Visual Studio, open the New Project dialog and navigate to the Extensibility folder.Ĭhoose Add-in Express COM Add-in and click OK. Run Visual Studio via the Run as Administrator command.

Make sure that you have administrative permissions before running Visual Studio. Accordingly, RegisterForAllUsers =įalse means writing to HKCU (=for the current user). Registering forĪll users means creating registry entries in HKLM and that means the user registering a per-machine plug-in must have administrative permissions. Generates a per-user project your add-in is per-machine if the addin module has ADXAddinModule.RegisterForAllUsers = True. Per-user and per-machine COM add-insĪ COM add-in can be registered either for the current user (the user running the installer) or for all users on the machine. Modify an email when it is being sent it can cancel saving an Excel workbook or it can check if a Word document or selected text meets some conditions. In a COM add-in targeting Outlook, you can add custom option pages to the Tools | Options and Folder Properties dialogs.Ī COM add-in also handles events and calls properties and methods provided by the object model of the host application. A COM add-in supporting Outlook, Excel, Word or PowerPoint can show advanced task In a Word document and perform some actions on the selected objects. Say, a COM add-in can show a command bar or Ribbon button to process selected Outlook emails, Excel cells, or paragraphs COM add-ins is the only way to add new or re-use built-in UI elements such as commandīar controls and Ribbon controls. IDTExtensibility2 interface (it is a COM interface, of course). Be sure you’re signed into the Microsoft Office application with the same account you used on the web.COM add-ins have been around since Office 2000 when Microsoft allowed Office applications to extend their features with COM DLLs supporting the Once you have, open the Office application you want to use the add-in with and click Insert > Add-ins > My Add-ins.Ĭlick the “Refresh” link at the top right corner of the window if the add-in you just added to your account doesn’t yet appear here. Use the same Microsoft account you use for Microsoft Office.

If you’re getting the add-in from the Office Store on the web, you’ll have to first click the “Add” button on the add-in’s page and sign in with your Microsoft account, if you haven’t already. If you opened the Office Store pane from within a Microsoft Office application, the add-in will immediately appear in a sidebar at the side of your office document. Once you’ve found an add-in you like, click the add-in and click “Trust It” to give the add-in access to the contents of any document you use the add-in with. This provides you with a complete list of add-ins available for all Office applications.

You can also visit the Office Store website online.
