Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.02 KB

Publisher.TextRange.LanguageID.md

File metadata and controls

46 lines (28 loc) · 1.02 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
TextRange.LanguageID property (Publisher)
vbapb10.chm5308471
vbapb10.chm5308471
Publisher.TextRange.LanguageID
1007c821-cafd-0cb3-94f4-4ac25decad30
06/15/2019
medium

TextRange.LanguageID property (Publisher)

Returns or sets an 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

[!includeSupport and feedback]