Show All

# LanguageSettings Property

A read-only property that returns a reference to the Microsoft Office LanguageSettings object.

expression.LanguageSettings

expression An expression that returns a reference to the Application object.

## Security Level

0: Can be accessed without restrictions.

## Remarks

The LanguageSettings property is available only when using scripting code.

After you establish a reference to the LanguageSettings object, you can access all the properties and methods of the object.

## Example

The following example uses the LanguageID property of the LanguageSettings object to return the LCID value (a four-digit number) for the language that is currently being used for the Office help system:

    Application.LanguageSettings.LanguageID(3);

Note Because Microsoft Office InfoPath 2003 uses scripting code instead of Visual Basic for Applications (VBA), you cannot use the names of enumerated values; you must use the numerical values of the enumerations, as in the previous example (msoLanguageIDHelp = 3).

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp