Creating an Application-Level Add-In for Microsoft Word

In this section you learn how to build an application-level add-in for Microsoft Office, which includes an example that targets Microsoft Word, but the idea behind the code structure is almost the same for Excel and PowerPoint. The goal of the sample add-in is to provide a custom task pane where you place user controls for retrieving revisions and comments from the active Word document and saving information into an Xml file. The first step is creating a new project. In the New Project dialog, select the Visual Basic, Office, 2007 folder. Select the Word 2007 add-in template and then name the new project as WordSummaryAddin. Figure 52.1 shows details about this.

Figure 52.1 Creating a ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.