View Single Post
 
Old 08-17-2021, 04:50 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,166
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

It is not fully clear what you want to do. Is this what you are looking to do?
Code:
Sub HiSpell()
  Dim aRng As Range, aWord As Range
  
  Set aRng = ActiveDocument.Range
  aRng.LanguageID = wdEnglishUS
  aRng.NoProofing = False
  
  For Each aWord In aRng.Words
    If CheckSpelling(aWord.Text) = False Then
      aWord.InsertBefore "##"
      aWord.HighlightColorIndex = wdYellow
    End If
  Next aWord
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote