Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enter New Line and Character in a Text Box 2

Status
Not open for further replies.

Tr0

Programmer
Jul 12, 2007
24
US
I am trying to create a button and upon the click event it will proceed to the next line in the text box and also insert a marking character such as "*". Does anyone have any ideas on how to approach this.

Thanks so much.
 
textBox = textBox & vbcrlf & "*"

--------------------
Procrastinate Now!
 
That works great, but is it possible to set the cursor right after the asterik so the user does not have to manually click on the text box again.
 
textBox.SetFocus
textBox.SelStart = Len(textBox.Text)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Works like a charm.

I am a newbie to VBA programming so thanks for the help.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top