I have a long string (with no spaces) that I am trying to split up into legal words with one space between them. I want it fully automated so am using the attached code to spell check individual words.
However, to test this code works ok I have entered the single letters 'a' to 'z' in the first 26 rows of column A. For every row (except the letter 'i') it comes up with TRUE (indicating a correct spelling). This can't be right as only 'i' (which is showing FALSE) and 'a' (showing TRUE) I think are the only legal 1 letter words. So, what am I doing wrong ...... ?
Sub test()
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
With Range("A" & i)
.Offset(, 2).Value = Application.CheckSpelling(.Value)
End With
Next i
End Sub
However, to test this code works ok I have entered the single letters 'a' to 'z' in the first 26 rows of column A. For every row (except the letter 'i') it comes up with TRUE (indicating a correct spelling). This can't be right as only 'i' (which is showing FALSE) and 'a' (showing TRUE) I think are the only legal 1 letter words. So, what am I doing wrong ...... ?
Sub test()
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
With Range("A" & i)
.Offset(, 2).Value = Application.CheckSpelling(.Value)
End With
Next i
End Sub