Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Excel-Based Samples
 Excel Smart Tags Sample
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 Smart Tags Sample

Updated: November 2007

Note:

This sample runs only in Microsoft Office Excel 2007.

This sample demonstrates how you can incorporate smart tags into your Microsoft Office Excel solution. For more information about smart tags in Excel, see Smart Tags Overview.

This sample contains two smart tags. The first smart tag uses term-based recognition to convert airport codes to airport names. The second smart tag uses regular expressions to recognize and convert temperatures between Celsius and Fahrenheit.

Security 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.

For information about installing the sample project on your computer, see How to: Install and Use Sample Files Found in Help.

Download sample

To run this sample

  1. Press F5.

  2. Move the pointer over text that is underlined, click the smart tag icon, and then click an action in the shortcut menu.

  3. Type a temperature in the Enter temperature to convert box and then press ENTER.

  • How to add a smart tag to a document.

  • How to recognize string literals in a smart tag.

  • How to recognize regular expressions in a smart tag.

  • How to implement actions for a smart tag.

  • How to change the action menu item based on the recognized text.

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