|I don't know about LO, but in Word I found the macro creation process to be fairly simple.|
Under the Review tab is there is an option to choose the Proofing Language (PL)
After selecting block of text, I recorded 2 macros, one while selecting Spanish as the PL and another while selecting English as the PL. Once I had those 2 macros recorded, a little editing resulted in a single macro that toggles the PL of the selection.
The code is really just one instruction: "If the current Proofing Language for the Selection is English, change it to Spanish, otherwise change it to English." This results in toggling between the 2 languages. Since both language packs are enabled, the SpellChecker picks the correct one based on Proofing Language set by the code.
If Selection.LanguageID = wdSpanish Then
Selection.LanguageID = wdEnglishUS
Selection.LanguageID = wdSpanish
Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.
message edited by DerbyDad03