I'm trying to write a macro that will highlight any cells in the range e5:e20000 that have a spelling error. I get a "runtime error 113" every time I hit a cell with more than 255 characters in it. I tried adding a condition to skip +255 char cells, but it's not really working.
Ideally, I want to include all cells, regardless of the character number. Any advice? Thanks!
Sub Cellswithtypos()
For Each cl In ActiveSheet.UsedRange.Range("E5:E20000").Cells
If Len(cl.Value) <= 255 And Not Application.CheckSpelling(Word:=cl.Text) Then _
cl.Interior.ColorIndex = 18
Next cl
End Sub