This documentation is archived and is not being maintained.

OWCLanguageSettings Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.


Returns information about the language settings for the Microsoft Office Web Components.

Using the OWCLanguageSettings object

Use Application.LanguageSettings.LanguageID(MsoAppLanguageID), where MsoAppLanguageID is one of the following constants used to return locale identifier (LCID) information to the specified application:  msoLanguageIDHelp, msoLanguageIDInstall, msoLanguageIDUI, or msoLanguageIDUIPrevious. The following example returns the install language, user interface language, and Help language LCIDs for a spreadsheet control named Spreadsheet1 in a message box.

MsgBox "The following locale IDs are registered " & _
    "for this application: Install Language - " & _
    Spreadsheet1.LanguageSettings.LanguageID(msoLanguageIDInstall) & _
    " User Interface Language - " & _
    Spreadsheet1.LanguageSettings.LanguageID(msoLanguageIDUI) & _
    " Help Language - " & _

The following example tests whether the U.S. English language is registered as a preferred editing language.

If Spreadsheet1.LanguageSettings. _
    LanguagePreferredForEditing(msoLanguageIDEnglishUS) Then
    MsgBox "U.S. English is one of the chosen editing languages."
End If