Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2022, 01:09 PM
Sickorax Sickorax is offline Macro for autocorrect (Word 2010)... ? Windows 7 64bit Macro for autocorrect (Word 2010)... ? Office 2007
Novice
Macro for autocorrect (Word 2010)... ?
 
Join Date: Jun 2011
Posts: 3
Sickorax is on a distinguished road
Default Macro for autocorrect (Word 2010)... ?

I'm not very familiar with VBA tools in general, but I'm wondering if anyone knows if there's a script in existence for performing this very common-sense task in Word 2010:

Namely, in cases where something is mis-spelled, and there is ONLY ONE substitution suggested by Word, that substitution should be applied automatically, without having to be added (or perhaps by being added automatically) to the autocorrect list.



Maybe this already exists somewhere, though I couldn't find any reference to it. But, if not, would it be straightforward to create?
Reply With Quote
  #2  
Old 01-10-2022, 07:01 PM
Guessed's Avatar
Guessed Guessed is online now Macro for autocorrect (Word 2010)... ? Windows 10 Macro for autocorrect (Word 2010)... ? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Most people don't have the same degree of trust in Microsoft's ability to offer perfect suggestions as you do. This macro would do what you asked for...
Code:
Sub MrFixit()
  Dim iErr As Integer, i As Integer, aRng As Range
  iErr = ActiveDocument.Range.SpellingErrors.Count
  For i = iErr To 1 Step -1
    Set aRng = ActiveDocument.Range.SpellingErrors(i)
    If aRng.GetSpellingSuggestions.Count = 1 Then
      aRng.Text = aRng.GetSpellingSuggestions.Item(1).Name
    End If
  Next i
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 97 Macro autocorrect help Genericname1111 Word VBA 0 09-15-2019 11:56 PM
Macro for autocorrect (Word 2010)... ? Formatted autocorrect not saving, Word 2010 Silkaline Word 16 10-04-2016 12:19 PM
How to import a list of autocorrect entries into Word 2010? gn4619 Word VBA 2 05-08-2015 01:04 PM
Macro for autocorrect (Word 2010)... ? help with autocorrect utility in word 2010 dj3642 Word 1 10-21-2012 09:57 AM
Macro for autocorrect (Word 2010)... ? Anybody know a macro that applies autocorrect to pasted content? dennisk Word VBA 1 06-09-2011 12:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:28 PM.


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