Actions Designed for Individual Applications [Office 2003 SDK Documentation]

Some smart tag actions are useful in all applications that support smart tags. Others may rely on features built into a particular application and should not even be listed on the Smart Tag Action menu in applications without the required features. In the Metric Conversion example, the action to convert from metric to English units is disabled in Microsoft Internet Explorer using the following "if" statement:

If (ApplicationName = "Ietag.ooc.1" Then
       ISmartTagAction_VerbCaptionFromID = ""

Setting the caption to either "" or Null prevents the action from being listed on the Smart Tag Action menu.

The reason this action is disabled in Internet Explorer is that changing the text would have no permanent effect in a web pageā€”it could be changed using the Internet Explorer document object model, but the change would be temporary, unlike in Microsoft Word and Microsoft Excel where the change is permanent.

Note that the ApplicationName parameter is "Ietag.ooc.1" for Internet Explorer version 5.0, 5.5 and 6.0.