Range.LanguageID Property (Word)
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Range.LanguageID Property (Word)

Returns or sets a WdLanguageID constant that represents the language for the specified range. Read/write.

expression .LanguageID

expression An expression that represents a Range object.

Some of the WdLanguageID constants may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

This example formats the second paragraph in the active document as French and then adds a new custom dictionary that will be used on the French text.

ActiveDocument.Paragraphs(2).Range.LanguageID = wdFrench 
Set myDictionary = CustomDictionaries.Add(Filename:="French.dic") 
With myDictionary 
 .LanguageSpecific = True 
 .LanguageID = wdFrench 
End With
© 2015 Microsoft