LanguagePreferredForEditing Property

Microsoft Office Web Components Visual Basic

expression.LanguagePreferredForEditing(lid)

expression    Required. An expression that returns one of the objects in the Applies To list.

lid   Required MsoLanguageID . The language to check for in the registry.

Remarks

You must test all valid msoLanguageID values to enumerate the set of preferred languages.

Example

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