If TrackChangesActive = True Then ActiveDocument.TrackRevisions = True ' The lines below revert settings to the status they had before the macro was run 'Block taken from my personal “MacroSwitchesOnAgain” code StatusBar = "Setting story " & oStor & " to language " & LanguageIdĪ = LanguageId ' Uses the normal method, equivalent of pressing ctrl+a and setting the language. If MsgBox("Perform the operation with track changes?", _ If SkipTrackChangesQuestion True Then ' Skip the track changes question If ActiveDocument.TrackRevisions = True Then TrackChangesActive = True Else TrackChangesActive = False If = True Then ShowFormatChanges = True Else ShowFormatChanges = FalseĪ = False If Options.CheckGrammarAsYouType = True Then CheckGrammarAsYouTypeActive = True Else CheckGrammarAsYouTypeActive = False ' Without switching this setting off and on, Word still underlines words that are correctly written in the new language. Cancel the above line if you don’t want Word to forget when you’ve “Ignored” a flagged spelling. ' Forces Word to check everything again with the new language. If Options.CheckSpellingAsYouType = True Then CheckSpellingAsYouTypeActive = True Else CheckSpellingAsYouTypeActive = False ' Checks whether CheckSpellingAsYouType is switched on. 'Block taken from my personal “MacroSwitchesOff” code ' TrackChangesActive As Boolean ' Only possible values are True/Falseĭim CheckSpellingAsYouTypeActive As Booleanĭim CheckGrammarAsYouTypeActive As Booleanĭim oDoc As Document, oSty As Style, oStor As Range ' Loosely based on a macro posted by Macropod (17 July 2012) LanguageId = msoLanguageIDEnglishUK ' Insert the Name or the Value listed at. ![]() Please leave a comment to let me know whether it works for you. ![]() ![]() Note that near the top of the code, sandwiched between asterisks, there is a line you may need to change, depending on the language and variety that you want to use. ![]() The video explains how to import the code. This updated version includes a correction of the error that was in the video and other minor tweaks, and it now updates the language in certain cases where it previously did not work.Įver felt frustrated when Word keeps selecting the wrong language every time you add a comment? This video explains how to change the language for all elements of a Word document, including footnotes, comments and text boxed, in an instant. Updated version uploaded on 1 December 2022.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |