Consulting

Results 1 to 4 of 4

Thread: Word VBA ignoring grammar errors

  1. #1
    VBAX Regular
    Joined
    Oct 2015
    Posts
    13
    Location

    Word VBA ignoring grammar errors

    I have a group of transcribers when typing will often run into a situation as follows:

    THE COURT: (Interposing) blah blah blah blah

    There is a blue line between ':' and '(' indicating a grammatical error has occurred.

    In word 2016 it doesn't allow you to 'ignore all' for grammar errors (unless I'm missing the setting somewhere). What I am thinking is to just create a macro in which they run the macro and it will go through the document and any occurrence of this particular phrase it will ignore it. These can occur upwards to 100 times in a single transcript causing the grammar check that they do at the end of their document to be tedious and long having to click ignore 100 times for the same error.

    Any help will be greatly appreciated.

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Posts
    7,737
    Location
    Is this the setting you were looking for?

    Via Options

    Capture.JPG





    Via macro

    Sub Macro2()
        Options.CheckGrammarAsYouType = False
    End Sub
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Regular
    Joined
    Oct 2015
    Posts
    13
    Location
    Not quite. Basically at the end of the document they want to run their spell check and grammar check. They don't want any of it hidden. It's just that this particular occurrence of the word (Interposing) appears hundreds of times and they're forced to hit ignore, ignore, ignore for each of them. I want to search for every instance of the phrase and ignore it as being a grammatical error. Just like if you were to right click on a grammar or spelling error it gives you options to change it or ignore it. That way they can run that macro first so it'll ignore all those occurrences, and then they can run their grammar check without that interfering anymore.

  4. #4
    VBAX Newbie Tersron's Avatar
    Joined
    Feb 2021
    Location
    Toronto
    Posts
    4
    Location
    I didn't know that until I found this post. Thank you for sharing this. I had to revise my English skills and even do some character analysis worksheet thinking that it would help me understand the issue with that error. As it seems it wasn't really a grammatical issue by my side and I'm glad. My English was never that great to start with and I have tried a lot to get to where I stand now in terms of how I speak and write. Luckily I found a few great resources to help me with that. I remember how back in the day I couldn't even spell basic words correctly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •