Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-16-2019, 04:59 AM
marcelma marcelma is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Nov 2015
Location: Berlin, Germany
Posts: 3
marcelma is on a distinguished road
Default GetSpellingSuggestions dictionary name

The 3rd parameter of



Selection.Range.GetSpellingSuggestions()

is supposed to be the main dictionary that is to be used.

Can anybody tell me what would be the parameter, if I want to choose the German dictionary? (Office 2010)

Thanks
Reply With Quote
  #2  
Old 05-16-2019, 04:32 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,392
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

If the word you're checking is formatted as German, you don't need to set the language. Form the VBA help file:
Quote:
If you don't specify a main dictionary, Microsoft Word uses the main dictionary that corresponds to the language formatting of the first word in the range.
Otherwise, you'll need something along the lines of:
Code:
Dim Dict As Dictionary
Set Dict = Languages(wdGerman).ActiveSpellingDictionary
Selection.Range.GetSpellingSuggestions , , Dict.Path & "\" & Dict.Name
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use "GetSpellingSuggestions"? GiHem Word VBA 3 11-14-2017 07:45 AM
Looking for Dictionary Add-Ins for MS Word KDL Word 0 12-01-2015 02:59 PM
Dictionary anner65 Word 0 10-28-2014 06:11 PM
Add to Dictionary edspiderelrod Word 0 10-25-2014 09:42 AM
No dictionary installed ToddPr Word 1 09-01-2014 05:51 AM


All times are GMT -7. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft