Application.LanguageSettings property (Visio)
Returns a reference to the Microsoft Office (MSO) LanguageSettings interface. Read-only.
Syntax
expression.LanguageSettings
expression A variable that represents an Application object.
Return value
Object
Remarks
After you use the LanguageSettings property to get a reference to the MSO LanguageSettings interface, you can use methods of that interface to get the locale identifier (LCID) for the language used when Office was installed, the user interface (UI) language, and the language for Help, as well as the current setting for the preferred language for editing in the UI, as shown in the following example.
However, you cannot use the LanguageSettings interface to change language settings; you can change language settings only in the Microsoft Office Language Settings dialog box (Start > All Programs > Microsoft Office > Microsoft Office Tools > Microsoft Office Language Settings).
Example
The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the LanguageSettings property to get an MSO LanguageSettings interface, and then to use two of its methods to get the ID of the language set for the UI, and to test whether US English is set as the preferred language for editing.
Public Sub LanguageSettings_Example()
Dim msoLanguageSettings As LanguageSettings
Set msoLanguageSettings = Application.LanguageSettings
Debug.Print msoLanguageSettings.LanguageID(msoLanguageIDUI)
Debug.Print msoLanguageSettings.LanguagePreferredForEditing(msoLanguageIDEnglishUS)
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기