SUMMARY
This article describes how to troubleshoot a custom-created smart tag that does not work as you expect.
Smart tag technology gives Microsoft Office programs the ability to recognize data that you enter. Office then offers on-the-spot access to actions that relate to that data. To develop smart tags, you can use Microsoft Visual Basic for Applications or Microsoft Visual C++ or Extensible Markup Language (XML).
back to the top
The Smart Tag Does Not Work in One or More Office Programs
Verify that the recognizer is being loaded by Microsoft Word or Microsoft Excel. To do this, follow these steps:
- Start Microsoft Word.
- On the Tools menu, click AutoCorrect Options.
- Click the Smart Tags tab.
- Verify that the Label text with smart tags check box is selected and that your smart tag is both listed and selected in the Recognizers list.
- Start Microsoft Excel and repeat steps 2 through 4.
Note In step 4, the check box is labeled Label data with smart tags.
back to the top
The Smart Tag Is Not Listed in the Recognizers List
This behavior can occur for the following reasons.
back to the top
An Office Program Was Running When the Smart Tag Was Registered
As long as one instance of Word or Excel is open, there is the potential that the smart tag will not be registered correctly with the Office programs. Outlook used with WordMail keeps an instance of Word open, so you must also quit Outlook when you install smart tags. Finally, Microsoft Internet Explorer may interfere with the installation if you browse to a page that contains smart tags.
back to the top
The Security Settings Are Too Restrictive
Smart tags cannot run if they are unsigned and if your security settings are set too restrictively. To verify your security settings in Office, follow these steps:
- Start Microsoft Word.
- On the Tools menu, point to Macro, and then click Security.
- Click the Trusted Sources tab.
- Verify that the Trust All Installed Add-ins and Templates check box is selected.
Note Alternatively, you can use the Security Levels tab to set your security level to Medium. - Click OK, and then quit Word.
- Repeat this process in Microsoft Excel.
back to the top
The Smart Tag Dynamic Link Library Stopped Responding
To find out whether your smart tag dynamic link library (DLL) has stopped responding and is disabled, follow these steps.
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
- Click Start, click Run, type regedit in the Open dialog box, and then click OK.
- In the Registry Editor, locate the Status value under the following key in the registry:
HKEY_CURRENT_USER\Software\Microsoft\Office\Common\Smart Tag\Recognizers\your smart tag ProgId
Note The preceding registry key is one path; it has been wrapped for readability.
- If the Status value is set to a decimal value of 1, your smart tag DLL crashed and is deactivated. If the Status value is set to a decimal value of 8, the DLL is deactivated in Microsoft Word. If the Status value is set to a decimal value of 16, the DLL is deactivated in Microsoft Excel.
- Select the Status subkey. On the Edit menu, click Delete. When you are prompted to confirm deletion of the value, click Yes.
- Quit the Registry Editor.
After you delete the
Status value, start Word and Excel to reload the smart tag. In each program, point to
AutoCorrect Options on the
Tools menu, and then click the
Smart Tags tab. Does your smart tag load correctly? If not, verify the
Status value in the Registry Editor again to determine whether the DLL is disabled. If the
Status value shows that the DLL is again disabled, there is a problem with the DLL code.
back to the top
Registration of the Smart Tag DLL is Invalid
If you registered the smart tag DLL in the registry by using a Class ID (CLSID) that was generated by Visual Basic for Applications, it is possible that your DLL's Global Unique Identifier (GUID) has changed. This is because the generation of GUIDs in Visual Basic for Applications is determined by your project's compatibility settings. To verify your project's compatibility settings, follow these steps:
- Start Microsoft Visual Basic for Applications.
- On the Project menu, click Project name Properties, and then click the Component tab.
- In the Version Compatibility box, view the setting that is selected for your project. If No Compatibility is selected, a new CLSID is generated each time the DLL is compiled.
- Change this setting to either Project Compatibility or Binary Compatibility.
After you update the compatibility settings for the Visual Basic for Applications project, you must re-register the DLL on the computer. The following
section describes how to re-register a DLL.
back to the top
Re-Register the Smart Tag DLL
To ensure a clean registration of the smart tag DLL, follow these steps:
- Click Start, click Run, type regsvr32 /u path\DLL name in the Open dialog box, and then click OK.
In this example, path\DLL name is the location and file name associated with your smart tag DLL.
This unregisters the DLL on the computer. - Copy the file to a new location.
- Click Start, click Run, type regsvr32 new path\DLL name in the Open dialog box, and then click OK.
back to the top