![]() |
|
#1
|
|||
|
|||
![]()
Try the attached.
I ran the following macro: Code:
Sub StyleEnglishCanadian() ' Written 21 April 2018 ' Charles Kenyon ' Intended to set all styles to EnglishCanadian, proofing, not automatitically update ' Language IDs https://docs.microsoft.com/en-us/office/vba/api/word.wdlanguageid ' Dim aStyle As Style On Error Resume Next ' Some styles have no language attribute and will give an error For Each aStyle In ActiveDocument.Styles Select Case aStyle.NameLocal Case "TOC 1", "TOC 2", "TOC 3", "TOC 4", "TOC 5", "TOC 6", "TOC 7", "TOC 8", "TOC 9" Let aStyle.AutomaticallyUpdate = True Case Else Let aStyle.AutomaticallyUpdate = False End Select Let aStyle.LanguageID = wdEnglishCanadian Let aStyle.NoProofing = False Next aStyle ActiveDocument.UpdateStylesOnOpen = False ' For information on using this line, see: ' http://www.shaunakelly.com/word/sharing/willmyformatchange.html On Error GoTo -1 End Sub |
#2
|
|||
|
|||
![]()
Thank you again. As far as I can see, you are getting the same result as I did, with both US and Canada at the top of the proofing languages dialogue but with Canada selected, except that yours seems to hold. What's interesting is that, when I copied the macro, installed it, and ran it in the copy I sent you, it behaved as before, effective until; I closed and reopened the document.
Well, I'll start with yours, replace the data I had removed from it, and see how things go. As always, I appreciate your generous assistance. Philip |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Proofing Language Changes do Not Take Effect | Andrew H | Word | 8 | 01-03-2018 07:32 AM |
![]() |
kiyap | Word | 3 | 10-01-2016 08:24 AM |
Can't set proofing language | Mayda89 | PowerPoint | 3 | 01-28-2016 11:00 AM |
![]() |
M. Dino | Word | 1 | 11-14-2014 04:19 PM |
![]() |
BigOldArt | Word | 2 | 01-18-2013 01:22 PM |