logo
search
Formatting Issues

How to Clear Microsoft Word Formatting using AppleScript on Mac

Chanuka GeekiyanageChanuka Geekiyanage Sep 30, 2026 868 views

Question details

The user wants to remove direct formatting from a selected paragraph in Microsoft Word on macOS without using the Styles pane or Touch Bar shortcuts.

How to Clear Microsoft Word Formatting using AppleScript
Product
Microsoft Word
Device & OS
macOS
Scenario
Clearing direct text formatting programmatically or efficiently when built-in keyboard customization options are lacking.
Observed behavior
Microsoft Word's Customize Keyboard dialog lacks a built-in command for clearing paragraph formatting, prompting the need for a custom script or workaround.
Before you start

Ensure you have Microsoft Word installed on your Mac and open the built-in Script Editor application to run AppleScript commands. Make sure to highlight the target text in your document before executing the script.

Solution 1Recommended

Use AppleScript to Clear Selection Formatting

Run a simple AppleScript to programmatically invoke Word's clear formatting command on the currently highlighted text.

This method directly targets the active selection in Microsoft Word and forces the application to strip away all direct formatting, bypassing the need to navigate through the Styles pane.

1
Select the Text in Word

Open your document in Microsoft Word and highlight the paragraph or text block that contains the unwanted formatting.

2
Open Script Editor

Launch the Script Editor app on your Mac (you can find it using Spotlight search).

3
Enter the AppleScript Code

Type or paste the following script into the editor: tell application "Microsoft Word" to activate; selection clear formatting; end tell

4
Run the Script

Click the Run button (the play icon) in Script Editor. Word will become the active window, and the formatting on your selected text will be cleared.

Use AppleScript to Clear Selection Formatting
Automation Tip: You can save this script as a Quick Action in macOS Automator to assign a global keyboard shortcut to it for future use.
Free Microsoft Office alternative

Try WPS Office for Easier Document Formatting

If you find managing styles and formatting in Microsoft Word overly complex, WPS Office offers a free, lightweight, and highly compatible alternative. Its intuitive user interface allows you to clear formatting with a single click, eliminating the need for complex AppleScript workarounds.

  1. 1. Download WPS Office: Install the free WPS Office suite on your Mac.
  2. 2. Open Your Document: Launch WPS Writer and open your existing Word (.docx) file.
  3. 3. Clear Formatting Easily: Highlight the text and click the 'Clear Formatting' eraser icon directly on the Home tab—no scripting required.
Free and lightweight office suite for MacFully compatible with Microsoft Word (.docx) formatsClear formatting instantly using an intuitive toolbarFamiliar interface for seamless migration from MS Office
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't the Customize Keyboard dialog in Word have a Clear Formatting option?

Microsoft Word for Mac does not include 'ClearParagraphAllFormatting' as a built-in command directly assignable via the Customize Keyboard menu, which often forces users to rely on the Styles pane, AppleScript, or Normal style shortcuts.

Does pressing Shift+Command+N remove all text formatting?

Not always. Shift+Command+N applies the document's default Normal style. While this removes many layout rules, certain direct character formatting (like manually applied bolding or specific font colors) might remain intact.

Can I trigger this AppleScript without opening the Script Editor every time?

Yes. You can use the macOS Automator or Shortcuts app to create a Quick Action containing this AppleScript. Once saved, you can assign a custom keyboard shortcut to this Quick Action in your Mac's System Settings.