locked
Turning off grammar checker in one doc only RRS feed

  • Question

  • Re. the wavy line grammar checker function.  I need to send a test out to people to test their grammar skills, but I need to be able to turn the grammar checker off on that document and ensure that they are not able to cheat!  Is there a way to protect this particular document I want to use so that just the grammar/spell checker wavy line thing is not switched on in this document even on their computers? 

    Hope this makes sense! 

    Friday, October 19, 2018 10:47 AM

Answers

  • Not if they are very savvy Word users. However,...

    If you modify the style(s) in the document to not check spelling or grammar it will probably work. You would be able to check the document later to see if they changed it.

    This is a proofing language setting.

    The following macro will turn off the spelling/grammar checker for all styles in a document.

    Sub StyleProofOff()
    '   Written 19 October 2018
    '   Charles Kenyon
    '   Intended to set all styles to no proofing, not automatitically update
    '
        Dim aStyle As Style
        On Error Resume Next ' Some styles have no language attribute and will give an error
        For Each aStyle In ActiveDocument.Styles
            ' For variations of English, see https://docs.microsoft.com/en-us/office/vba/api/word.wdlanguageid
            aStyle.NoProofing = True   '  turn off spelling and grammar checking
        Next 'aStyle
        ActiveDocument.UpdateStylesOnOpen = False ' For information on using this line, see:
    '       http://www.shaunakelly.com/word/sharing/willmyformatchange.html
        On Error GoTo 0
    End Sub

    For directions on how to use, see Installing Macros

    If they wrote the response in a different document first, and then pasted into your document, they could get the checking. Likewise, in your document, they could turn it back on by going to the language settings on the Review tab.

    If they do either and do not change it back, if you have access to the Word document, you can select all (Ctrl+A) and under the Review Tab > Language > Proofing Language you can see if the checkbox for "Do not check" is checked.


    Charles Kenyon Madison, WI



    • Edited by Charles Kenyon Friday, October 19, 2018 12:33 PM
    • Proposed as answer by Charles Kenyon Friday, October 19, 2018 2:38 PM
    • Marked as answer by Frecklepaw Friday, October 19, 2018 3:12 PM
    Friday, October 19, 2018 12:17 PM

All replies

  • Not if they are very savvy Word users. However,...

    If you modify the style(s) in the document to not check spelling or grammar it will probably work. You would be able to check the document later to see if they changed it.

    This is a proofing language setting.

    The following macro will turn off the spelling/grammar checker for all styles in a document.

    Sub StyleProofOff()
    '   Written 19 October 2018
    '   Charles Kenyon
    '   Intended to set all styles to no proofing, not automatitically update
    '
        Dim aStyle As Style
        On Error Resume Next ' Some styles have no language attribute and will give an error
        For Each aStyle In ActiveDocument.Styles
            ' For variations of English, see https://docs.microsoft.com/en-us/office/vba/api/word.wdlanguageid
            aStyle.NoProofing = True   '  turn off spelling and grammar checking
        Next 'aStyle
        ActiveDocument.UpdateStylesOnOpen = False ' For information on using this line, see:
    '       http://www.shaunakelly.com/word/sharing/willmyformatchange.html
        On Error GoTo 0
    End Sub

    For directions on how to use, see Installing Macros

    If they wrote the response in a different document first, and then pasted into your document, they could get the checking. Likewise, in your document, they could turn it back on by going to the language settings on the Review tab.

    If they do either and do not change it back, if you have access to the Word document, you can select all (Ctrl+A) and under the Review Tab > Language > Proofing Language you can see if the checkbox for "Do not check" is checked.


    Charles Kenyon Madison, WI



    • Edited by Charles Kenyon Friday, October 19, 2018 12:33 PM
    • Proposed as answer by Charles Kenyon Friday, October 19, 2018 2:38 PM
    • Marked as answer by Frecklepaw Friday, October 19, 2018 3:12 PM
    Friday, October 19, 2018 12:17 PM
  • Thanks - I couldn't select Ctrl + A to do the entire document, but if I highlighted individual portions of the text required I could use the switch off grammar function and it worked. Thanks :) 
    Friday, October 19, 2018 3:13 PM
  • See also http://wordfaqs.ssbarnhill.com/MasterSpellCheck.htm.

    Stefan Blom, Microsoft Word MVP

    Friday, October 19, 2018 10:20 PM