Replace All Caps Formatting with Lowercase and Underlining in Word for Mac
Question details
Find text with All Caps font formatting in a Word document, change it to lowercase, and apply single underlining.

- Product
- Microsoft Word for Mac
- Device & OS
- macOS
- Scenario
- The user wants to update multiple occurrences throughout a document without editing each one manually.
- Observed behavior
- The desired result is lowercase, single-underlined text wherever the All Caps font property was applied.
Select a sample of the affected text and check Format > Font to confirm that All Caps is enabled. This method targets the font property, not text that was typed in uppercase without that property.
Run a VBA macro to replace All Caps formatting
Use this method to update matching text in the document's main body in one pass.
Word's Find and Replace can find formatting, but it cannot directly convert replacement text to lowercase. The macro removes the All Caps font property, converts the underlying text to lowercase, and applies single underlining.
This macro searches the main document body; review headers, footers, and text boxes separately.
In Word, open the document and choose Tools > Macro > Visual Basic Editor.
In the editor, choose Insert > Module and paste the following code: Sub AllCapsToLowercaseUnderlined() On Error GoTo CleanUp Application.ScreenUpdating = False Selection.HomeKey Unit:=wdStory With Selection.Find .ClearFormatting .Text = "" .Font.AllCaps = True .Forward = True .Wrap = wdFindStop .Format = True Do While .Execute Selection.Font.AllCaps = False Selection.Font.Underline = wdUnderlineSingle Selection.Range.Case = wdLowerCase Selection.Collapse Direction:=wdCollapseEnd Loop End With CleanUp: Application.ScreenUpdating = True End Sub
Return to Word, choose Tools > Macro > Macros, select AllCapsToLowercaseUnderlined, and click Run.
Check several changed passages in the document. If you want to retain the macro in the file, use File > Save As and select the Word Macro-Enabled Document (.docm) format.

Edit Word Documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar editing interface. Open compatible Word documents in WPS Writer and make formatting changes as you move between office suites. It does not fix Word for Mac's VBA behavior.

Frequently Asked Questions
Will the macro find words that were typed entirely in uppercase?
Only if the All Caps font property is also applied. Select an affected word and check Format > Font for the All Caps setting.
Can Word's Find and Replace convert matching text to lowercase?
Find and Replace can search for font formatting, but it cannot directly convert replacement text to lowercase. Use the VBA macro for text with the All Caps property.
Does the macro also change headers and footers?
No. The macro searches the main document body. Review headers, footers, and text boxes separately.
How do I keep the macro in my document?
Choose File > Save As and select Word Macro-Enabled Document (.docm). A standard .docx file cannot retain VBA macros.




