Creating a Document-Level Add-In for Microsoft Excel

In the previous section you saw how you can create an application-level solution for Office. In this section you learn how to build document-level solutions, which is the other solution type available. In next example you create a document-level add-in for customizing a specific workbook in Microsoft Excel. Create a new Office project with Visual Basic, ensuring that the Excel 2007 Workbook template is selected (see Figure 52.6 for details). Name the new project CustomExcelWorkbook and then click OK.

Figure 52.6 Creating a document-level solution for Excel 2007.


This launches the Visual Studio ...

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.