Removing all smartTags of a word docx file

ChungLew 1 Reputation point
2022-04-14T08:42:31.457+00:00

I tried to manually add <w:doNotEmbedSmartTags/> to the settings.xml, open the doc and SaveAs a new doc. The smartTags are gone.
When using openxml 2.16, <w:doNotEmbedSmartTags> and <w:smartTags> are not valid objects in the library.

I also tried to use the following in Macro,
ActiveDocument.RemoveSmartTags
ActiveDocument.EmbedSmartTags = False
and it did not work.

Would there be any other ways to remove all smartTags?

Regards,
Chung

Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
891 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 21,626 Reputation points Microsoft Vendor
    2022-04-15T06:06:05.367+00:00

    Hi @ChungLew ,
    I suggest you try these methods:
    Method 1: Remove a Single Smart Tag from Text

    1. Move the insertion point over the text until the Smart Tag Actions button appears.
    2. Click the Smart Tag Actions button, and then click Remove this Smart Tag.

    Method 2: Remove All Smart Tags
    This method removes all Smart Tags, including Smart Tags labeled by recognizers you may no longer have and Smart Tags recognized in a document opened on someone else's computer. You cannot undo this action.

    1. On the Tools menu, click AutoCorrect Options, and then click the Smart Tags tab.
      Note: In Word 2007, click the Microsoft Office Button, click Word Options, click Proofing, and then click AutoCorrect Options under AutoCorrect options. In the AutoCorrect dialog box, click Smart Tags.
    2. On the Smart Tags tab, click Remove Smart Tags.

    Method 3: Remove Specific Types of Smart Tags
    This method removes some Smart Tags, but it leaves the feature turned on.

    1. On the Tools menu, click AutoCorrect Options, and then click the Smart Tags tab.
      Note In Word 2007, click the Microsoft Office Button, click Word Options, click Proofing, and then click AutoCorrect Options under AutoCorrect options. In the AutoCorrect dialog box, click Smart Tags.
    2. Under Recognizers, clear the check boxes for the Smart Tags you want to remove.
    3. Click Remove Smart Tags.

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.