selLength and no highlight



I'm passing a control to a subroutine in a *module* that does
spellchecking. Within the subroutine I have this line of code:

Public Sub SpellCheck(ByRef txtCtrl As TextBox)
.....
txtCtrl.SelLength = lngPos - lngStart
.....

I was assuming that this would automatically highlight the text, but it
doesn't and it would be very helpful if it did.

Comments/thoughts?

Thanks
Chris

.



Relevant Pages

  • Re: selLength and no highlight
    ... Within the subroutine I have this line of code: ... Public Sub SpellCheck(ByRef txtCtrl As TextBox) ...
    (comp.lang.basic.visual.misc)
  • Re: selLength and no highlight
    ... I'm passing a control to a subroutine in a *module* that does ... spellchecking. ... Public Sub SpellCheck ...
    (comp.lang.basic.visual.misc)
  • Err.Raise + Call Stack + UserForm
    ... its way back to the top-most subroutine. ... Public Sub Class_Initialize ... On Error GoTo ErrorHandler ... Dim lErrNum As Long ...
    (microsoft.public.word.vba.general)
  • RE: Message appear while Access is thinking/working
    ... OpenMyMessage subroutine. ... I have a form that contains 3 controls, a label, and two ... Optional DisplayStatus As Boolean = False) ... Public Sub MyMessageStatus ...
    (microsoft.public.access.formscoding)
  • Re: Still filename problem
    ... Do I have to declare it in each module or just any module? ... > Public Sub foo() ... > Public Sub bar() ... this subroutine calls another subroutine where I use a similar ...
    (microsoft.public.excel.programming)