How to Automatically Replace Characters in Word (AutoCorrect & VSTO)
Question details
The user wants to configure Word to automatically replace specific typed characters or strings without manual intervention, utilizing either built-in features like AutoCorrect or programmatic VSTO add-ins.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Setting up automatic text replacements to fix common typos, insert special symbols, or deploy advanced text-monitoring logic across documents.
- Observed behavior
- By default, replacing specific strings requires manual Find and Replace or user input, unless an AutoCorrect rule is defined or a background VSTO script actively monitors selection changes.
Identify the specific character strings you want to replace. For standard text and typo replacement, the built-in AutoCorrect feature is highly recommended over complex VSTO add-in development.
Use Built-in AutoCorrect to Replace Text
AutoCorrect is the simplest and most efficient way to automatically replace typed characters without needing to write or deploy custom code.
The AutoCorrect feature monitors your keystrokes in real-time. Whenever you type a predefined trigger word or character sequence followed by a space or punctuation mark, it instantly swaps it with your target text.
Launch Microsoft Word. Click on 'File' in the top-left corner, scroll down to the bottom of the left sidebar, and select 'Options'.
In the Word Options dialog box, select 'Proofing' from the left pane. Click on the 'AutoCorrect Options...' button located under the AutoCorrect options section.
Ensure you are on the 'AutoCorrect' tab. In the 'Replace' box, type the characters or abbreviation you want to be replaced. In the 'With' box, type the final text or symbol you want to appear.
Click the 'Add' button to save the new rule to your dictionary, then click 'OK' to close the dialog boxes. Test your new rule by typing the trigger word followed by the spacebar in your document.

Develop a VSTO Add-in for Complex Logic
If your replacement logic requires monitoring selection changes, pulling from external databases, or complex conditional formatting, a Visual Studio Tools for Office (VSTO) add-in is required.
Easily Auto-Replace Text in WPS Writer
If you are looking for a fast, user-friendly word processor with robust AutoCorrect capabilities, WPS Writer provides an intuitive way to manage automatic text replacements without writing code.
- 1. Open WPS Writer Settings: Launch WPS Writer, click on 'Menu' in the top-left corner, and choose 'Options' from the dropdown list.
- 2. Access Spell Check and AutoCorrect: In the Options window, select 'Spell Check' from the left sidebar, then click on the 'AutoCorrect Options' button.
- 3. Define Your Replacement: In the 'Replace' text box, type your shorthand characters. In the 'With' text box, type the full replacement word or phrase.
- 4. Apply and Use: Click 'Add', then 'OK'. Return to your document and type your shorthand followed by a space to see it instantly transform.

Frequently Asked Questions
Why is my AutoCorrect not working when I type the characters?
AutoCorrect requires a trigger to know you have finished typing the word. Ensure you press the Spacebar, Enter, or a punctuation mark after typing the characters. Additionally, check that 'Replace text as you type' is checked in your AutoCorrect Options.
What is the difference between AutoCorrect and Find & Replace?
AutoCorrect works proactively in real-time; it replaces text exactly as you type it. Find & Replace is a retroactive tool used to search for and change text that has already been written within the document.
Can I back up or transfer my AutoCorrect entries to another computer?
Yes. Unformatted AutoCorrect entries in Office are typically stored in .acl (AutoCorrect List) files in your user AppData directory (e.g., AppData\Roaming\Microsoft\Office). Copying these files allows you to migrate your custom shortcuts to a new PC.




