Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
47 lines (27 loc) · 1012 Bytes

textrange-languageid-property-publisher.md

File metadata and controls

47 lines (27 loc) · 1012 Bytes
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
TextRange.LanguageID Property (Publisher)
vbapb10.chm5308471
vbapb10.chm5308471
publisher
Publisher.TextRange.LanguageID
1007c821-cafd-0cb3-94f4-4ac25decad30
06/08/2017

TextRange.LanguageID Property (Publisher)

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