Share via


Application.Language Property

Publisher Developer Reference

Returns a Long that represents the language selected for the Microsoft Office Publisher user interface. Read-only.

Syntax

expression.Language

expression   A variable that represents a Application object.

Return Value
Long

Remarks

The LanguageID property value can be one of the MsoLanguageID constants declared in the Microsoft Office type library.

Example

This example displays a message stating whether the language selected for the Publisher user interface is U.S. English.

Visual Basic for Applications
  Sub LangSetting()
    If Application.Language = msoLanguageIDEnglishUS Then
        MsgBox "The user interface language is U.S. English."
    Else
        MsgBox "The user interface language is not U.S. English."
    End If
End Sub

See Also