Quote:
Originally Posted by vivka
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.