Place cursor at end!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone help me with the code needed to place the cursor at the end of
existing text in a memo box? I have my memo box on page 3 of a multi-tab
sheet. Thanks for your help.
 
Can someone help me with the code needed to place the cursor at the end of
existing text in a memo box? I have my memo box on page 3 of a multi-tab
sheet. Thanks for your help.

Code the Memo control's Enter event:

Me![MemoControl].SelStart = Len(Me![MemoControl])

This will work as long as you tab or use code to enter the field.
It will not work if the user uses the cursor and clicks in the field.
In that case, entry is where ever the cursor is placed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top