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

LanguageSettings.LanguageID Property (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets a MsoAppLanguageID constant representing the locale identifier (LCID) for the install language, the user interface language, or the Help language. Read-only.

Syntax

expression. LanguageID( Id )

expression A variable that represents a LanguageSettings object.

Parameters

NameRequired/OptionalData TypeDescription
IdRequiredMsoAppLanguageIDReturns one of the MsoAppLanguageID enumerations.

Example

This Microsoft Excel example checks the LanguageID property settings for the user interface and execution mode to verify that they are set to the same LCID. The example returns an error if there is a discrepancy.

If Application.LanguageSettings.LanguageID(msoLanguageIDExeMode) _ 
 > Application.LanguageSettings.LanguageID(msoLanguageIDUI) _ 
 Then MsgBox "The user interface language and execution " & _ 
 "mode are different."

See also

Concepts

LanguageSettings Object

Other resources

LanguageSettings Object Members

© 2018 Microsoft