This little Excel VBA function always returns false, no what word is passed in.
Function SpellCheck(SomeWord As String)
SpellCheck = Application.CheckSpelling(SomeWord)
End Function
In fact, in the IDE I can verify that Application.CheckSpelling(“hello”) fails, though the Excel spellchecker does detect misspellings.
What I’m trying to do is get a T/F value for each word if it is spelled correctly.
Like I mentioned in my comment it works.
Application.CheckSpellingwill not correct or offer to correct a misspelled word, it only returnsTrueorFalseI tested
?Application.CheckSpelling("hello")in immediate window and it returned
TrueEDIT: Calling
Application.CheckSpellingfrom UDF would always returnFalse. Last time I checked, it was still a bug and there was no way around it. If there is a recent update on that then I am not aware of it. 🙂MORE EDIT
Here is your function slightly modified which will work as a UDF as well 🙂
Got the idea from this link