Textbox focus issue fix

Trick to force textbox with multiple lines and scrollbars to refresh itself without jumping the cursor to be at the end of the text area once that textbox had the focus
Annoying issue solved below


Public

Tested

My Own Work
Sub Where_WeChanged_TheText()
TxtY2.Text = Texx2
TxtY2.SelStart = 0
end Sub

Private Sub TxtY2_Enter()
TxtY2.SelStart = Len(TxtY2.Text)
TxtY2.SelStart = 0
TxtY2.SetFocus
End Sub

Views 4532 Downloads 1232

VBA UI
ANmarAmdeen
710
Revisions

v1.0