Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-04-2013, 05:19 PM
fumei fumei is offline macro to delete a list of autocorrect entries Windows 7 64bit macro to delete a list of autocorrect entries Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Deleting AutoCorrects is easy. It is a single instruction.
Code:
AutoCorrect.Entries("TheString").Delete
Or in your case:

Code:
AutoCorrect.Entries("Jane Doe").Delete


So. If you have a list, AND the list is made up of single paragraphs you can:

a) build an array of the list and process through it
OR
b) process through each paragraph in the list with something like:
Code:
Dim oPara As Paragraph
Dim AC_String As String
Code:
For Each oPara In ActiveDocument.Paragraphs
   AC_String = Left(oPara.Range.Text, InStr(1, oPara.Range.Text, "=") - 1)
   AutoCorrect.Entries("AC_String").Delete
Next
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro to delete a list of autocorrect entries Transferring Autocorrect entries from 2010 to 2013 Tegglet Word 2 03-10-2014 06:58 PM
macro to delete a list of autocorrect entries Formatting autocorrect entries Ray1853 Excel 3 02-22-2013 07:59 PM
How are you meant to print added AutoCorrect entries? anon93 Word 1 03-27-2012 11:11 PM
Autocorrect entries with astrix at the end dswapp Word 2 02-14-2011 09:34 AM
Using Word autocorrect and autotext entries in outlook dswapp Outlook 2 11-24-2010 10:18 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft