Let's go through some important pointers that will be helpful for Visual Studio Tools for Office (VSTO) programming.
Introduction / Overview of VSTO
- Consists of a managed code assembly that is associated with a Microsoft Office application
- Can use Visual Studio tools for developing VSTO Add-ins
- Can use any of the classes in the .NET Framework.
- Add-in projects include an automatically generated class that represents the VSTO Add-in
- Class provides properties and events that can be used to access the (office) object model
- Other Visual Studio features such as Windows Forms and an integrated debugger are available
For more information refer.
Components of VSTO Add-ins
- Registry Entries
- Microsoft Office applications discover VSTO Add-ins by looking for a set of registry entries
- On build, Visual Studio creates all of the required registry entries on the development computer
- ClickOnce , the Setup program generated by the publish process, automatically creates the registry keys on the end user computer
- Deployment Manifest and Application Manifest
- Being used to identify and load the most current version of the VSTO Add-in assembly
- Deployment manifest points to the current application manifest
- Application manifest points to the VSTO Add-in assembly, also, specifies the entry point class to execute in the assembly
- Visual Studio Tools for Office Runtime
- To run VSTO Add-ins, end user computers must have the Visual Studio Tools for Office runtime installed
- Includes unmanaged components that load the VSTO Add-in assembly
- and, set of managed assemblies that provide the object model, use to automate and extend the host application.
For more information on how it works.
Office Application Object Models
- Developing Add-ins, we need to interact with the office application object model
- This object model consists of classes and interfaces that are provided in the primary interop assembly for office application
Excel Model Object
- Application - represents the Excel application itself
- Workbook - represents a single workbook within the Excel application.
- Worksheet - is a member of the Worksheets collection
- Range - represents a cell, a row, a column, a selection of cells within your Excel application
For more information.

Join the conversation! Your thoughts help the community grow.