![]() |
|
|
|
#1
|
|||
|
|||
|
Thanks, I solved the problem of potential multiple words and various word terminators by just selecting text the size of each entry. Also "Option Compare Text" is needed to make it case-insensitive.
Option Compare Text Sub AutoCorrectNow() Dim orng As Range For Each Entry In Word.Application.AutoCorrect.Entries Set orng = Selection.Range orng.MoveStart wdCharacter, -Len(Entry.Name) If orng.Text = Entry.Name Then Entry.Apply orng Exit For End If Next End Sub |
|
| Tags |
| autocorrectnow |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macro on Search and Replace | davidhuy | Word VBA | 1 | 12-19-2014 04:47 AM |
| Need Macro to Replace Text | rsrasc | Word VBA | 2 | 11-10-2014 06:26 PM |
| Windows 95 WordBasic (!!!) macro | NobodysPerfect | Word VBA | 4 | 08-25-2014 02:03 AM |
Find and Replace Macro
|
amparete13 | PowerPoint | 3 | 03-11-2014 05:29 AM |
Macro - replace with condition
|
ubns | Word VBA | 1 | 05-02-2012 12:52 AM |