Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2017, 10:51 AM
GiHem GiHem is offline How to use "GetSpellingSuggestions"? Windows 10 How to use "GetSpellingSuggestions"? Office 2010 64bit
Novice
How to use "GetSpellingSuggestions"?
 
Join Date: Nov 2017
Posts: 10
GiHem is on a distinguished road
Default How to use "GetSpellingSuggestions"?

Hello the forum,
When I type a text in Word 2010, I often make typing mistakes. Especially if the text is in German (uppercase at the beginning of the noun).
I would like to automate the corrections, especially those concerning the uppercase absence.
There is a VBA instruction "GetSpellingSuggestions".
Could a member of the forum explain it to me:
  • how to force the use of the German dictionary for the choice of suggestions
  • how to extract the first suggestion
Thank you in advance for your answers
GiHem
Reply With Quote
  #2  
Old 11-14-2017, 04:55 AM
GiHem GiHem is offline How to use "GetSpellingSuggestions"? Windows 10 How to use "GetSpellingSuggestions"? Office 2010 64bit
Novice
How to use "GetSpellingSuggestions"?
 
Join Date: Nov 2017
Posts: 10
GiHem is on a distinguished road
Default

J'ai trouvé une solution, non satisfaisante mais solution quand même. Elle est basée sur une instruction trouvée sur le site de Microsoft
Code:
    If ActiveDocument.Words(1).GetSpellingSuggestions.Count <> 0 Then
    MsgBox ActiveDocument.Words(1).GetSpellingSuggestions.Item(1).Name
    End If
GiHem
Reply With Quote
  #3  
Old 11-14-2017, 04:58 AM
macropod's Avatar
macropod macropod is offline How to use &quot;GetSpellingSuggestions&quot;? Windows 7 64bit How to use &quot;GetSpellingSuggestions&quot;? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See: https://www.msofficeforums.com/word-...tml#post112057
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 11-14-2017, 07:45 AM
GiHem GiHem is offline How to use &quot;GetSpellingSuggestions&quot;? Windows 10 How to use &quot;GetSpellingSuggestions&quot;? Office 2010 64bit
Novice
How to use &quot;GetSpellingSuggestions&quot;?
 
Join Date: Nov 2017
Posts: 10
GiHem is on a distinguished road
Default

Thank you for your response.
This thread is very interesting and I agree with your conclusions.
At first, I just wanted to correct the lack of initial capitalization for nouns in German. As it works quite well (thanks to the help of a MS forum in French) I also wanted to correct the spelling but you talked me out of it.
Thanks again
GiHem
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine "sort within groups" and "identify duplicate/unique values" in two different variables. civilcervant Excel 3 06-12-2017 07:27 AM
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas jocke321 Word VBA 2 12-10-2014 11:27 AM
How to edit the "Format" and the "show level" of an EXISTING table of content? Jamal NUMAN Word 2 08-14-2011 10:46 AM
How to use &quot;GetSpellingSuggestions&quot;? How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
"Microsoft Excel Application" missing in the "Component Services" on win08 sword.fish Excel 0 02-26-2010 02:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft