Click here to Skip to main content
15,887,464 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
So I’m working on this text editor using a form with a rich text box, the spelling d other function work fine. However I would to add a function that underlines any misspelled word in ref in the rich text box and blue for any grammar mistake just like office does, I had thought to use part of the spelling checker as code for this but it does not work
So I’m working on this text editor using a form with a rich text box, the spelling d other function work fine. However I would to add a function that underlines any misspelled word in ref in the rich text box and blue for any grammar mistake just like office does, I had thought to use part of the spelling checker as code for this but it does not work


What I have tried:

    errors = .SpellingErrors
Else
    errors = .GrammarErrors
End If

For Each errorRange As Word.Range In errors
    errorRange.Underline = Word.WdUnderline.wdUnderlineSing
Posted
Updated 17-Jun-23 5:33am

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900