The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Excel Controls Sample

Download sample

Note Required applications

The features in this topic are available only if you have the required applications installed.

For more information, see Features Available by Product Combination.

  • One of these development environments:

    VSTO 2005


    Visual Studio Team System

  • Microsoft Office 2003

This sample demonstrates how to access the events of managed controls on a Microsoft Office Excel 2003 worksheet from a Microsoft Visual Studio 2005 Tools for the Microsoft Office System project assembly.

Security noteSecurity Note

This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.

For information about installing the sample project on your computer, see How to: Download Sample Files in Help Topics.

To run this sample

  • Press F5.


This sample demonstrates:

  • Accessing controls on an Excel worksheet using Visual Basic and C#.

  • Handling control events.

  • Programming against managed controls, host controls, and user controls.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft