title | keywords | f1_keywords | ms.prod | api_name | ms.assetid | ms.date | ||
---|---|---|---|---|---|---|---|---|
TextRange.LanguageID Property (Publisher) |
vbapb10.chm5308471 |
|
publisher |
|
1007c821-cafd-0cb3-94f4-4ac25decad30 |
06/08/2017 |
Returns or sets a MsoLanguageID constant that represents the language for the specified object. Read/write.
expression. LanguageID
_expression_A variable that represents a TextRange object.
MsoLanguageID
The LanguageID property value can be one of the ** MsoLanguageID** constants declared in the Microsoft Office type library.
This example formats the specified selection as French. This example assumes that the cursor is in a text box.
Sub SetLanguage()
Selection.TextRange.LanguageID = msoLanguageIDFrench
End Sub