94

Is it possible to disable the automatic spell checker in MS Word 2010 for single paragraphs of a document or just for some parts of a document?

I'd like to get rid of the squiggly lines in some parts of a document (e.g. containing extracts of an XML document), because they make reading the document hard.

103

OK, I guess I found it and it's quite simple:

  • select the part of the document where you want to disable spell checking
  • click the language in the status bar
  • select the check box "Do not check spelling or grammar"
  • click OK

Word 2007

Screenshot from german version of Word:

screenshot from German version of Word

Screenshot from English version of Word:

Screenshot from English version of Word

Word 2010/2013/2016

For Word 2010/2013/2016 you have use Review ribbon menu. Click Language and then Set proofing language. You can disable spell and grammar check there even you can select a different language for proofing.

  • 1
    The EN-US localization of the text surrounded by red boxes in the screenshot: "English (U.S.)" and "Do not check spelling or grammar". – Firefeather May 12 '11 at 17:40
  • 2
    In Word 2007, here is how you do the same action described above: You choose the text that needs to have the spell check disabled. And from the Review ribbon hit the Set Language button and you get the option to disable spell check as shown above in M4N's post. – user226975 May 26 '13 at 18:43
  • I've added a English version of the screenshot, it just has to be accepted. I hope you don't mind. :D – Zain Patel May 26 '13 at 18:58
  • 2
    I recommend moving the Word 2010/2013/2016 section to the top of your answer. However, I have set "Do not check spelling or grammar" on a section - which already had a square box when I opened the dialog - and the red-underlining of text still occurs. Version: Word 2013. – PeterX Jan 24 '18 at 23:06
11

You can create a custom style for the XML parts. It is possible to select no-spellchecking for individual styles. Sorry I don't know the exact key sequences as I have a very old version of word.

EDIT in my old version the sequence from the style dialog is "Modify" then "format" then "language" then click "Do not check spelling or grammar".

  • That was my first idea, but I couldn't find any options to disable spellchecking. – M4N Mar 11 '11 at 13:38
  • @M4N and @Mick in Word 2003 (don't know which version you're using M4N, but I've got this handy) this is where you find the options when editing a style i.imgur.com/r0p2w.png i.imgur.com/PoXJT.png (Mick, feel free to use these in your answer if you wish). You can also get there from Tools-Language-Set Language on the menu bar, but I'd advise using a specifically designed style for your code inserts. – DMA57361 Mar 11 '11 at 13:39
  • See my edit - that might do the trick. – Mick Mar 11 '11 at 14:12
  • Modifying the style does not affect the pre-existing paragraphs. To retroactively apply the changes to the existing paragraphs: Right-click the style, Select All xx Instance(s), then select the style again to reapply. – Hampden123 Sep 24 '15 at 18:19
1

You can find detailed answer for each MS Office program at MS Office Support: The spelling and grammar checker isn't working as expected:

In Office 2010, Office 2013, and Office 2016

  1. Select the text that you want the spelling and grammar checker to ignore.
  2. On the Review tab, in the Language group, click Language, and then click Set Proofing Language.
  3. Select the Do not check spelling or grammar check box.

In Office 2007

  1. Select the text that you want the spelling and grammar checker to ignore.
  2. Open the Language dialog box:
    • In Word: On the Review tab, in the Proofing group, click Set Language.
    • In Outlook: In the Spelling drop-down list, in the Proofing group, click Set Language.
    • In PowerPoint: On the Review tab, in the Proofing group, click Language.
  3. Select the Do not check spelling or grammar check box.

After selecting Do not check spelling or grammar check box, I've found very useful the option to create a new style from selection:

In Word 2010, you can create a special style that is based on the selected text:

Right-click the selection, and then click Save Selection as a New Quick Style.

Give the style a name—for example, code—and then click OK.

Notice that if you don't find the New Quick Style in the context menu, you can find it under Sytles as "Save Selection as new Quick Style..."

After that, you can give that Style to all portions of text you don't want to be checked.

1

The following macro will toggle proofing for the selected text. You can assign a keyboard shortcut to it, which makes life easy:

Sub toggle_proofing_in_selection_only()
    Selection.NoProofing = Not (Selection.NoProofing)
End Sub

It is essentially equivalent to the effect you'd get if you use the menu/ribbon as suggested in the answer that was selected best, however, if you do assign a shortcut to it (as I did), it will save you all those mouse movements and clicks...

0

No, you can however select it and then assign a specific langugae to it.

Perhaps you could add all XML tags to another language that you would never write/use?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.