Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-27-2023, 12:16 PM
ADAL ADAL is offline Macro to change the word language Windows 10 Macro to change the word language Office 2021
Novice
Macro to change the word language
 
Join Date: Dec 2023
Posts: 6
ADAL is on a distinguished road
Default Macro to change the word language

CAN ANYBODY TELL MEHOW TO MAKE A MACRO THAT CHANGES THE WORD DISPLAY LENGUAGE TO SPANISH (INSTEAD OF CLICKING FILE>options>language>spanish>set as prefered,



Application.LanguageSettings.LanguageID(msoLanguag eIDUI)
is read only
thanks
Reply With Quote
  #2  
Old 12-28-2023, 06:24 AM
vivka vivka is offline Macro to change the word language Windows 7 64bit Macro to change the word language Office 2016
Competent Performer
 
Join Date: Jul 2023
Posts: 227
vivka is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 12-28-2023, 07:32 AM
Italophile Italophile is offline Macro to change the word language Windows 11 Macro to change the word language Office 2021
Expert
 
Join Date: Mar 2022
Posts: 338
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to change the word language install language and macro language rgros Word VBA 6 04-08-2021 01:38 AM
Macro to change the word language How to change alphabetical order in Word for sorting in a foreign language BobK Word Tables 1 12-01-2017 05:17 PM
Macro to change language and untick 'do not check spelling' William E PowerPoint 2 05-13-2017 01:47 PM
Macro to change the word language Word macro - remove shading from active para. and assign language to it, keep text cursor position dejanm83 Word VBA 3 03-19-2017 02:36 PM
Macro to change the word language prevent Word 2010 from changing spelling language when I change keyboard layout CSurghi Word 7 04-01-2016 10:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft