Table of contents
TOC
Collapse the table of content
Expand the table of content

TextRange.LanguageID Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns or sets a MsoLanguageID constant that represents the language for the specified object. Read/write.

Syntax

expression. LanguageID

_expression_A variable that represents a TextRange object.

Return Value

MsoLanguageID

Remarks

The LanguageID property value can be one of the ** MsoLanguageID** constants declared in the Microsoft Office type library.

Example

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
© 2018 Microsoft