Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-16-2015, 02:32 PM
BobSundquist BobSundquist is offline How to replace WordBasic.AutoCorrectNow in an old macro? Windows 7 64bit How to replace WordBasic.AutoCorrectNow in an old macro? Office 2013
Novice
How to replace WordBasic.AutoCorrectNow in an old macro?
 
Join Date: Dec 2015
Posts: 2
BobSundquist is on a distinguished road
Default AutoCorrectNow

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
Reply With Quote
Reply

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
How to replace WordBasic.AutoCorrectNow in an old macro? Find and Replace Macro amparete13 PowerPoint 3 03-11-2014 05:29 AM
How to replace WordBasic.AutoCorrectNow in an old macro? Macro - replace with condition ubns Word VBA 1 05-02-2012 12:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:33 PM.


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