This grammar check code skips text that was marked as "Ignore once".
I thought that the ActiveDocument.GrammarChecked = False line would
enable rechecking text previously marked as "Ignore once". I am
wrong. Please help. Thanks.

Application.ResetIgnoreAll
ActiveDocument.SpellingChecked = False
ActiveDocument.GrammarChecked = False
With Options
.CheckSpellingAsYouType = True
.CheckGrammarAsYouType = True
.SuggestSpellingCorrections = True
.SuggestFromMainDictionaryOnly = False
.CheckGrammarWithSpelling = True
.ShowReadabilityStatistics = False
.IgnoreUppercase = True
.IgnoreMixedDigits = True
.IgnoreInternetAndFileAddresses = True
.AllowCombinedAuxiliaryForms = True
.EnableMisusedWordsDictionary = True
.AllowCompoundNounProcessing = True
.UseGermanSpellingReform = True
End With
ActiveDocument.ShowGrammaticalErrors = True
ActiveDocument.ShowSpellingErrors = True
Languages(wdEnglishUS).SpellingDictionaryType = wdSpelling

Re: What code line enables a rescan of text marked as "Ignore once"? by Tony

Tony
Fri Nov 18 07:24:13 CST 2005

It should, and it does for me.

However the code you post doesn't actually do a grammar check so won't give
any visible results.

--
Enjoy,
Tony


<Charlie Mac> wrote in message
news:245qn1l2cidnp2p5fa5go9ft4fusdpo79o@4ax.com...
> This grammar check code skips text that was marked as "Ignore once".
> I thought that the ActiveDocument.GrammarChecked = False line would
> enable rechecking text previously marked as "Ignore once". I am
> wrong. Please help. Thanks.
>
> Application.ResetIgnoreAll
> ActiveDocument.SpellingChecked = False
> ActiveDocument.GrammarChecked = False
> With Options
> .CheckSpellingAsYouType = True
> .CheckGrammarAsYouType = True
> .SuggestSpellingCorrections = True
> .SuggestFromMainDictionaryOnly = False
> .CheckGrammarWithSpelling = True
> .ShowReadabilityStatistics = False
> .IgnoreUppercase = True
> .IgnoreMixedDigits = True
> .IgnoreInternetAndFileAddresses = True
> .AllowCombinedAuxiliaryForms = True
> .EnableMisusedWordsDictionary = True
> .AllowCompoundNounProcessing = True
> .UseGermanSpellingReform = True
> End With
> ActiveDocument.ShowGrammaticalErrors = True
> ActiveDocument.ShowSpellingErrors = True
> Languages(wdEnglishUS).SpellingDictionaryType = wdSpelling



Re: What code line enables a rescan of text marked as "Ignore once"? by Charlie

Charlie
Fri Nov 18 10:08:33 CST 2005

Thank you for your response, but I may not have been clear in
describing my problem. As an example, if a sentence starts with
"And...", it will be green underlined, but if it is then marked as
"Ignore once" and rescanned, this code will leave the "And..." without
a green underline. I need to avoid the popup window for each error
discovered. Thanks again for your help.

On Fri, 18 Nov 2005 13:24:13 -0000, "Tony Jollans" <My Forename at My
Surname dot com> wrote:

>It should, and it does for me.
>
>However the code you post doesn't actually do a grammar check so won't give
>any visible results.


Re: What code line enables a rescan of text marked as "Ignore once"? by Tony

Tony
Fri Nov 18 10:52:50 CST 2005

If I understand correctly, you are asking for a complete grammar recheck but
somehow ignoring things you have previously said to ignore once. I'm afraid
I don't know how to do this or even if it can be done at all - sorry, but
I'll have to defer to someone else.

--
Enjoy,
Tony


<Charlie Mac> wrote in message
news:c7urn1l1eqtm3874oqui5kide5j7tllfqa@4ax.com...
> Thank you for your response, but I may not have been clear in
> describing my problem. As an example, if a sentence starts with
> "And...", it will be green underlined, but if it is then marked as
> "Ignore once" and rescanned, this code will leave the "And..." without
> a green underline. I need to avoid the popup window for each error
> discovered. Thanks again for your help.
>
> On Fri, 18 Nov 2005 13:24:13 -0000, "Tony Jollans" <My Forename at My
> Surname dot com> wrote:
>
> >It should, and it does for me.
> >
> >However the code you post doesn't actually do a grammar check so won't
give
> >any visible results.
>



Re: What code line enables a rescan of text marked as "Ignore once"? by Charlie

Charlie
Fri Nov 18 11:40:23 CST 2005

Tony,

Yes, that is what I need. Thank you for your efforts. I can record
the menu actions and that works, but when replaying the macro the text
is skipped.

Take care,

Mac

On Fri, 18 Nov 2005 16:52:50 -0000, "Tony Jollans" <My Forename at My
Surname dot com> wrote:

>If I understand correctly, you are asking for a complete grammar recheck but
>somehow ignoring things you have previously said to ignore once. I'm afraid
>I don't know how to do this or even if it can be done at all - sorry, but
>I'll have to defer to someone else.


Re: What code line enables a rescan of text marked as "Ignore once"? by Tony

Tony
Fri Nov 18 13:41:23 CST 2005

Hi Charlie,

Maybe it's just me but I'm not following this properly. The code you posted
originally resets all grammar checks so all memory of what has been 'ignored
once' is lost. I don't see how you are doing what I thought you wanted
manually.

What are the menu actions you perform?

--
Enjoy,
Tony


<Charlie Mac> wrote in message
news:v44sn1tnmq5hpk4m4p89eclba6lg1kc5ek@4ax.com...
> Tony,
>
> Yes, that is what I need. Thank you for your efforts. I can record
> the menu actions and that works, but when replaying the macro the text
> is skipped.
>
> Take care,
>
> Mac
>
> On Fri, 18 Nov 2005 16:52:50 -0000, "Tony Jollans" <My Forename at My
> Surname dot com> wrote:
>
> >If I understand correctly, you are asking for a complete grammar recheck
but
> >somehow ignoring things you have previously said to ignore once. I'm
afraid
> >I don't know how to do this or even if it can be done at all - sorry, but
> >I'll have to defer to someone else.
>



Re: What code line enables a rescan of text marked as "Ignore once"? by Charlie

Charlie
Fri Nov 18 14:04:34 CST 2005

Tony,

Here are the steps I used:

Start the macro recorder
Click on Tools, Options, Spelling & Grammar
Click on Check (or Recheck) Documents
Click Yes and OK
Stop the macro recording and view code

By walking throuogh the menus all text is rechecked, but the code
generated will not recheck text marked as Ignore once".

I did notice that Checked and Rechecked generate the same code. ???

I am stumped as to why this code will not repeat the menu actions.

Take care,

Mac



On Fri, 18 Nov 2005 19:41:23 -0000, "Tony Jollans" <My Forename at My
Surname dot com> wrote:

>Hi Charlie,
>
>Maybe it's just me but I'm not following this properly. The code you posted
>originally resets all grammar checks so all memory of what has been 'ignored
>once' is lost. I don't see how you are doing what I thought you wanted
>manually.
>
>What are the menu actions you perform?


Re: What code line enables a rescan of text marked as "Ignore once"? by Tony

Tony
Sat Nov 19 16:57:42 CST 2005

Hi Mac,

I just did exactly as you state and when I do a grammar check after running
the recorded code it rechecks just the same as when I do one after doing the
menu options.

As I can't reproduce your problem, I'm afraid I'm a bit stuck. Sorry.

--
Enjoy,
Tony


<Charlie Mac> wrote in message
news:7dcsn15tg4qgpkavk25i3slbbru2u0ut4r@4ax.com...
> Tony,
>
> Here are the steps I used:
>
> Start the macro recorder
> Click on Tools, Options, Spelling & Grammar
> Click on Check (or Recheck) Documents
> Click Yes and OK
> Stop the macro recording and view code
>
> By walking throuogh the menus all text is rechecked, but the code
> generated will not recheck text marked as Ignore once".
>
> I did notice that Checked and Rechecked generate the same code. ???
>
> I am stumped as to why this code will not repeat the menu actions.
>
> Take care,
>
> Mac
>
>
>
> On Fri, 18 Nov 2005 19:41:23 -0000, "Tony Jollans" <My Forename at My
> Surname dot com> wrote:
>
> >Hi Charlie,
> >
> >Maybe it's just me but I'm not following this properly. The code you
posted
> >originally resets all grammar checks so all memory of what has been
'ignored
> >once' is lost. I don't see how you are doing what I thought you wanted
> >manually.
> >
> >What are the menu actions you perform?
>



Re: What code line enables a rescan of text marked as "Ignore once"? by Charlie

Charlie
Mon Nov 21 11:36:13 CST 2005

Tony,

I re-booted my computer and now my copy works. (?) Thanks for your
efforts and sorry for the trouble.

Take care,

Mac



On Sat, 19 Nov 2005 22:57:42 -0000, "Tony Jollans" <My Forename at My
Surname dot com> wrote:

>Hi Mac,
>
>I just did exactly as you state and when I do a grammar check after running
>the recorded code it rechecks just the same as when I do one after doing the
>menu options.
>
>As I can't reproduce your problem, I'm afraid I'm a bit stuck. Sorry.


Re: What code line enables a rescan of text marked as "Ignore once"? by Tony

Tony
Mon Nov 21 12:03:02 CST 2005

Glad you're sorted. By whatever means :)

--
Enjoy,
Tony


<Charlie Mac> wrote in message
news:u514o196vt2ssp1adp9n1aproa035qdber@4ax.com...
> Tony,
>
> I re-booted my computer and now my copy works. (?) Thanks for your
> efforts and sorry for the trouble.
>
> Take care,
>
> Mac
>
>
>
> On Sat, 19 Nov 2005 22:57:42 -0000, "Tony Jollans" <My Forename at My
> Surname dot com> wrote:
>
> >Hi Mac,
> >
> >I just did exactly as you state and when I do a grammar check after
running
> >the recorded code it rechecks just the same as when I do one after doing
the
> >menu options.
> >
> >As I can't reproduce your problem, I'm afraid I'm a bit stuck. Sorry.
>