Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Excel-Based Samples
 Excel Controls Sample

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.Net Framework 3.5

Other versions are also available for the following:
Microsoft Visual Studio Tools for the Microsoft Office system (version 3.0)
Excel Controls Sample

NoteNote:

This sample runs only in Microsoft Office Excel 2007.

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

Security noteSecurity Note:

This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.

Download sample

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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker