textbox the cursor jumps to the end of the sentence

Sahak

Well-known Member
Joined
Nov 10, 2006
Messages
1,012
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Hi All,

The TextBox on User form gets a value from worksheet cell. When I want to edit a text, the cursor jumps to the end of the sentence.
any idea ?
(Excel 2007)

Thank you in advance.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
SOP? I guess that is the first control to get focus?

To select at beginning:
Code:
Private Sub UserForm_Initialize()
  [A1] = "Ken"
  TextBox1.Value = [A1]
  TextBox1.SelStart = 0
End Sub
 
Upvote 0
Thank you Kenneth for reply.

I have no problem where to put the cursor, the problem is that when I want to edit any text in sentence, after typing one letter, or trying to add a word in sentence the cursor jumps to the end of the sentence.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,628
Messages
6,173,426
Members
452,515
Latest member
Alicedonald9

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top