The procedure below shows how you can use Excel's spelling feature to
determine if a list of words is located in the dictionary. Enter some words
and non-words into cells A1:A10 on Sheet1 and then run the procedure to see
how it works. A message box will be displayed for each word that the
spelling feature can't locate. This doesn't mean that it isn't a real word,
it just might be misspelled.
Sub LookForWordsInSpellingDictionary()
Dim bFound As Boolean
Dim rngCell As Range
Dim rngTable As Range
Set rngTable = Sheet1.Range("A1:A10")
For Each rngCell In rngTable
bFound = Application.CheckSpelling( _
Word:=rngCell.Value, IgnoreUppercase:=False)
If Not bFound Then
MsgBox rngCell.Value & " was not located."
End If
Next rngCell
End Sub
--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/
* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *