How do I get the TextBox to display

Question:
How do I get the TextBox to display automatically at the end of text, instead of at the begining of the text?

Answer:
The answer is very simple. All you need to do is to set the textbox’s SelStart property equal to the length of the text:Private Sub txtBox_GotFocus() With txtBox .SelStart = Len(.Text) End WithEnd Sub

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: