High Light Miss spell words in excel

shrinivasmj

Board Regular
Joined
Aug 29, 2012
Messages
140
hi

i need to word to be high light or underline for miss spelled words in excel need vb or macro
 
Try:

Code:
Sub Test()
    Dim C As Range
    Dim Words As Variant
    Dim i As Long
    For Each C In Intersect(ActiveSheet.UsedRange, ActiveSheet.Columns("D")).Cells
        Words = Split(C.Value, " ")
        For i = LBound(Words) To UBound(Words)
            If Not Application.CheckSpelling(Word:=Words(i)) Then
                C.Characters(Start:=InStr(1, C.Value, Words(i)), Length:=Len(Words(i))).Font.ColorIndex = 3
            End If
        Next i
    Next C
End Sub
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Need to trim D Column high light miss spelled words form Dictionary only in red bold

Try:

Code:
Sub Test()
    Dim C As Range
    Dim Words As Variant
    Dim i As Long
    For Each C In Intersect(ActiveSheet.UsedRange, ActiveSheet.Columns("D")).Cells
        Words = Split(C.Value, " ")
        For i = LBound(Words) To UBound(Words)
            If Not Application.CheckSpelling(Word:=Words(i)) Then
                C.Characters(Start:=InStr(1, C.Value, Words(i)), Length:=Len(Words(i))).Font.ColorIndex = 3
            End If
        Next i
    Next C
End Sub
 
Upvote 0
Need to hight light only dictionery words to below code

Sub Test()
Dim C As Range
Dim Words As Variant
Dim i As Long
For Each C In Intersect(ActiveSheet.UsedRange, ActiveSheet.Columns("D")).Cells
Words = Split(C.Value, " ")
For i = LBound(Words) To UBound(Words)
If Not Application.CheckSpelling(Word:=Words(i)) Then
C.Characters(Start:=InStr(1, C.Value, Words(i)), Length:=Len(Words(i))).Font.ColorIndex = 3
End If
Next i
Next C
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top