Steps to Create Microsoft Word Add-in
We need to have Microsoft Visual Studio 2019 (community edition) installed. Within Visual Studio, install the Office/SharePoint development workload. Now, within the Visual Studio menu bar, go to File > New > Project.
Type SharePoint in the search and you will find Word Web Add-in as the project type. Click select and proceed to next step. Name the project, and then choose OK. You will select Web application project as type. Visual Studio creates a solution that contains two projects. Visual Studio creates a solution and its two projects appear in Solution Explorer.
Microsoft does have own guide for this development :
However, you’ll find that the new default “Word Add-In with Commands Sample” more nice to study along with the above text and basic sample. We have a
home.html file, a
home.js and finally a XML manifest file. The XML manifest file has least editing work.
The names of the files, such as
In order to test, simply click the
Start option (with play icon) within the Microsoft Visual Studio IDE (Start is located at top, middle). At end, the loaded add-in will open on Microsoft Word. We have marked the location of the
Start option in the above screenshot.