Red underline misspelt words?

homer2002

New Member
Joined
Jul 18, 2005
Messages
6
Hi all


For some reason (and I have searched and searched) I can't find an option in Excel 2003 to underline misspelt words with a red line.


Can someone stop me losing my mind and point it out.


I bet after all this its as obvious as hell

Cheers

Homer
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Oddly enough this seems to work when there is more than 1 word in each cell? Anyways, give this a trial... set your own range. HTH. Dave
Code:
Sub BadSpell()
'red underlines misspelled words in Rng
Dim Rng As Range, C As Range
Set Rng = Sheets("sheet1").Range("A1:A" & _
Sheets("sheet1").Range("A1").End(xlDown).Row)
'reset font
For Each C In Rng
With C
.Font.Underline = False
.Font.ColorIndex = xlAutomatic
End With
Next C
'red underline bad spelling
For Each C In Rng
If Not Application.CheckSpelling(C) Then
With C
.Font.Underline = xlUnderlineStyleSingle
.Font.ColorIndex = 3
End With
End If
Next C
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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