I have rich text box I am trying to spell check with no luck.
I have a command button that when pressed it runs the following code:
I am setting the control name to the rich text box....
Dim ctl As Control
Set ctl = control_name
If Len(.Value) > 0 Then
.SelStart = 1
.SelLength = Len(.Value)
.SelLength = 0
Set ctl = Nothing
It will not spell check the field, nothing happens. If I run the same code on a memo box, everything works fine but, I need the rich text functionality...
One difference between text fields & memo fields is the property "Enter Key Behavior" which is set to default in a text box and as "New Line in Field". I doubt this will do it for you, but I don't understand what you mean by "I am setting the control name to the rich text box... I need the rich text functionality.". Calling the control name doesn't change the behavior as a rtf text box. (Unless I am missing something here.)