Export (0) Print
Expand All

How to: Enable Smart Tags in Word and Excel

Updated: July 2008

Applies to

The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.

Document-level projects

  • Excel 2003

  • Excel 2007

  • Word 2003

  • Word 2007

Application-level projects

  • Excel 2007

  • Word 2007

For more information, see Features Available by Application and Project Type.

Smart tags must be explicitly enabled in Word or Excel on the end user computer. By default, smart tags are not enabled.

There are two ways to enable smart tags:

  • You can programmatically enable smart tags by running code in your solution.

  • End users can enable smart tags by using menu commands in the UI of Word or Excel.

The code used to enable smart tags is different for Word and Excel.

To enable smart tags in Word

  • Set the LabelSmartTags property to true.

    The following code example enables smart tags if they are currently disabled. To use this code, run it from the ThisDocument class (for document-level projects) or ThisAddIn class (for application-level projects).

    if (!this.Application.Options.LabelSmartTags)
    {
        this.Application.Options.LabelSmartTags = true;
    }
    

To enable smart tags in Excel

  • Set the Recognize property to true.

    The following code example enables smart tags if they are currently disabled. To use this code, run it from the ThisWorkbook class (for document-level projects) or ThisAddIn class (for application-level projects).

    if (!this.Application.SmartTagRecognizers.Recognize)
    {
        this.Application.SmartTagRecognizers.Recognize = true;
    }
    

The procedures are different for Microsoft Office 2003 and the 2007 Microsoft Office system.

To enable smart tags in Word 2003 and Excel 2003

  1. In Word or Excel, on the Tools menu, click AutoCorrect Options.

  2. Click the Smart Tags tab.

  3. Select the Label data with smart tags check box.

To enable smart tags in Word 2007 and Excel 2007

  1. In Word or Excel, click the Microsoft Office Button Office 2007 Button.

  2. Click the ApplicationName Options button.

  3. In the categories pane, click Add-ins.

  4. In the Manage box, click Smart Tags, and then click Go.

  5. Select the Label data with smart tags check box.

Date

History

Reason

July 2008

Added topic.

Customer feedback.

Community Additions

ADD
Show:
© 2015 Microsoft