Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2005

Tip: Looking for answers? Try searching our database.

What code line enables a rescan of text marked as "Ignore once"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charlie Mac - 17 Nov 2005 23:51 GMT
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
Tony Jollans - 18 Nov 2005 13:24 GMT
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
Charlie Mac - 18 Nov 2005 16:08 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.