View Single Post
 
Old 12-28-2023, 07:32 AM
Italophile Italophile is online now Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 555
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Quote:
Originally Posted by vivka View Post
Hi, Adal! Try this (for Office 16), although I'm not sure about es-es:
Code:
Sub Office_Prefd_Lang_Esp()

  CreateObject("WScript.Shell").RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\LanguageResources\PreferredEditingLanguage", "es-es", "REG_SZ"
End Sub
After running the code, restart Word.
You've misunderstood the question. The OP wants to set the display language, not the editing language. If you had checked the documentation for LanguageSettings.LanguageID you would have understood.

Registry settings can also be written using VBA without resorting to Windows Scripting. Application.System has a property, PrivateProfileString, that can be used to write to the registry, or to an INI file.
Reply With Quote