OWCLanguageSettings Object

Microsoft Office Web Components Visual Basic

OWCLanguageSettings Object

Multiple objects OWCLanguageSettings

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 - " & _
   
Spreadsheet1.LanguageSettings.LanguageID(msoLanguageIDHelp)
		

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