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
> This grammar check code skips text that was marked as "Ignore once".
> I thought that the ActiveDocument.GrammarChecked = False line would
[quoted text clipped - 22 lines]
> ActiveDocument.ShowSpellingErrors = True
> Languages(wdEnglishUS).SpellingDictionaryType = wdSpelling
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.
Tony Jollans - 18 Nov 2005 16:52 GMT
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
> Thank you for your response, but I may not have been clear in
> describing my problem. As an example, if a sentence starts with
[quoted text clipped - 10 lines]
> >However the code you post doesn't actually do a grammar check so won't give
> >any visible results.
Charlie Mac - 18 Nov 2005 17:40 GMT
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
>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.
Tony Jollans - 18 Nov 2005 19:41 GMT
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
> Tony,
>
[quoted text clipped - 10 lines]
> >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.
Charlie Mac - 18 Nov 2005 20:04 GMT
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
>Hi Charlie,
>
[quoted text clipped - 4 lines]
>
>What are the menu actions you perform?
Tony Jollans - 19 Nov 2005 22:57 GMT
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
> Tony,
>
[quoted text clipped - 25 lines]
> >
> >What are the menu actions you perform?
Charlie Mac - 21 Nov 2005 17:36 GMT
Tony,
I re-booted my computer and now my copy works. (?) Thanks for your
efforts and sorry for the trouble.
Take care,
Mac
>Hi Mac,
>
[quoted text clipped - 3 lines]
>
>As I can't reproduce your problem, I'm afraid I'm a bit stuck. Sorry.
Tony Jollans - 21 Nov 2005 18:03 GMT
Glad you're sorted. By whatever means :)
--
Enjoy,
Tony
> Tony,
>
[quoted text clipped - 12 lines]
> >
> >As I can't reproduce your problem, I'm afraid I'm a bit stuck. Sorry.