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

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 586 Downloads 152

'Text', 'Textbox', 'Textarea', 'focus', 'sellength', 'selstart'

ANmarAmdeen
324
UI VBA
Revisions

v1.0