Before doing a spelling check of a document, I always select all (Ctrl + A) and set the language of the whole document. However, this does not seem to affect text boxes. How can I select a whole document and apply the same language setting to all the text in the document *including any text boxes*?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Language setting
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Language setting
- This topic has 6 replies, 3 voices, and was last updated 15 years, 3 months ago.
AuthorTopicMurgatroyd
AskWoody LoungerFebruary 22, 2010 at 3:42 pm #466881Viewing 3 reply threadsAuthorReplies-
WSJudyL
AskWoody Lounger -
WSjscher2000
AskWoody LoungerFebruary 22, 2010 at 6:16 pm #1210648How can I select a whole document and apply the same language setting to all the text in the document *including any text boxes*?
How about a macro?
Code:Sub AssignEnglishUS() Dim shp As Word.Shape With ActiveDocument .Content.LanguageID = wdEnglishUS For Each shp In .Shapes If shp.TextFrame.HasText Then shp.TextFrame.TextRange.LanguageID = wdEnglishUS End If Next End With End Sub
I’ve overlooked the headers and footers, but hopefully those are not a problem area, since the additional code is a bit involved.
(If you are not familiar with macros, open the Macros dialog using Alt+F8, type or paste AssignEnglishUS and click Create. Then fill in the contents between Sub and End Sub with the above code. You can run the macro from the Macros dialog, or assign it to a toolbar button.)
== Edit ==
I guess you will want to insert an A before US in the above. My oversight…
-
Murgatroyd
AskWoody LoungerFebruary 24, 2010 at 4:18 am #1210793Thanks for your reply. I curently use the following macro to set US English (and a matching one for UK English).
Sub US()
ActiveDocument.Styles(“Normal”).LanguageID = wdEnglishUS
Selection.WholeStory
Selection.LanguageID = wdEnglishUS
Selection.NoProofing = False
Application.CheckLanguage = False
End SubThis works on headers and footers, so I guess that appending your macro to mine will set the language everywhere (main document, headers/footers, and text boxes)?
How can I expand your macro to disable the “no proofing” and “do not check language” options inside text boxes as in my macro above?
-
WSjscher2000
AskWoody LoungerFebruary 24, 2010 at 12:21 pm #1210837Thanks for your reply. I curently use the following macro to set US English (and a matching one for UK English).
Code:Sub US() ActiveDocument.Styles("Normal").LanguageID = wdEnglishUS Selection.WholeStory Selection.LanguageID = wdEnglishUS Selection.NoProofing = False Application.CheckLanguage = False End Sub
This works on headers and footers, so I guess that appending your macro to mine will set the language everywhere (main document, headers/footers, and text boxes)?
If you combine them, you won’t need the .Content part of mine, as that refers to the main “body” area.
How can I expand your macro to disable the “no proofing” and “do not check language” options inside text boxes as in my macro above?
I would guess that those properties also belong to the “shp.TextFrame.TextRange” object but I have not gone back into the VBE to confirm. Hopefully you can find them there (or nearby) using the IntelliSense prompting.
-
-
Murgatroyd
AskWoody LoungerFebruary 24, 2010 at 7:56 pm #1210883Thanks for yor reply. I don’t know what the last sentence refers to, but I tried the following, and it works OK, although the “Selection.NoProofing = False” line switches off the “Do not check spelling” option everywhere except in the header/footer – do the header/footer language and proofing options need to be selected and set separately somehow?
Code:Sub US() ActiveDocument.Styles("Normal").LanguageID = wdEnglishUS ActiveWindow.ActivePane.View.Zoom.Percentage = 100 Selection.WholeStory Selection.LanguageID = wdEnglishUS Selection.NoProofing = False Application.CheckLanguage = False Dim shp As Word.Shape With ActiveDocument .Content.LanguageID = wdEnglishUS For Each shp In .Shapes If shp.TextFrame.HasText Then shp.TextFrame.TextRange.LanguageID = wdEnglishUS shp.TextFrame.TextRange.NoProofing = False End If Next End With End Sub
-
WSjscher2000
AskWoody LoungerFebruary 25, 2010 at 1:22 pm #1211024do the header/footer language and proofing options need to be selected and set separately somehow?
In many cases, yes, that’s why I disclaimed responsibility for them in my earlier post.
There are examples here in the Lounge of how to loop through all the headers and footers in code; hopefully the new search engine will turn those up.
-
Viewing 3 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
7 seconds ago -
KB5061768 update for Intel vPro processor
by
drmark
3 hours, 5 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
34 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
15 hours, 8 minutes ago -
Office gets current release
by
Susan Bradley
19 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 12 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
20 hours, 55 minutes ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 13 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 23 hours ago -
X Suspends Encrypted DMs
by
Alex5723
2 days, 1 hour ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
2 days, 1 hour ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
2 days, 2 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
2 days, 2 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 day, 15 hours ago -
Enabling Secureboot
by
ITguy
1 day, 22 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 10 hours ago -
No more rounded corners??
by
CWBillow
2 days, 6 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 20 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 23 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
3 days, 1 hour ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 20 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days, 9 hours ago -
May preview updates
by
Susan Bradley
2 days, 20 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 12 hours ago -
Just got this pop-up page while browsing
by
Alex5723
3 days, 1 hour ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 22 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
2 days ago -
At last – installation of 24H2
by
Botswana12
4 days ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
22 hours, 24 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
4 days, 12 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.