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*?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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, 4 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
-
Have Copilot there but not taking over the screen in Word
by
CWBillow
10 hours, 34 minutes ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
1 day, 15 hours ago -
Are Macs immune?
by
Susan Bradley
10 hours, 45 minutes ago -
HP Envy and the Function keys
by
CWBillow
22 hours, 47 minutes ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
2 days, 2 hours ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
2 days, 2 hours ago -
Unable to update to version 22h2
by
04om
17 hours, 8 minutes ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
2 days, 10 hours ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
2 days, 10 hours ago -
Very Quarrelsome Taskbar!
by
CWBillow
1 day, 19 hours ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
2 days, 23 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
2 days, 11 hours ago -
Is your battery draining?
by
Susan Bradley
23 hours, 6 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
6 minutes ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
3 days, 2 hours ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
13 hours ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
2 days, 11 hours ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
2 days, 3 hours ago -
National scam day
by
Susan Bradley
1 day, 10 hours ago -
macOS Tahoe 26 the end of the road for Intel Macs, OCLP, Hackintosh
by
Alex5723
2 days, 6 hours ago -
Cyberattack on some Washington Post journalists’ email accounts
by
Bob99
4 days, 3 hours ago -
Tools to support internet discussions
by
Kathy Stevens
2 days, 16 hours ago -
How get Group Policy to allow specific Driver to download?
by
Tex265
3 days, 19 hours ago -
AI is good sometimes
by
Susan Bradley
4 days, 11 hours ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
4 days, 1 hour ago -
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
5 days, 11 hours ago -
June KB5060842 update broke DHCP server service
by
Alex5723
5 days, 9 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
5 days, 14 hours ago -
Excessive security alerts
by
WSSebastian42
4 days, 4 hours ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
5 days, 23 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.