Cursor position

  • Thread starter Thread starter il barbi
  • Start date Start date
I

il barbi

I need some VBA function giving the position of the cursor
in a text control, namely the order number of the character
in the string on which the cursor is currently positioned
il barbi
 
il barbi said:
I need some VBA function giving the position of the cursor
in a text control, namely the order number of the character
in the string on which the cursor is currently positioned
il barbi

If control txtMyTextbox has the focus, then

Me!txtMyTextbox.SelStart

returns the position of the text caret.
 
Back
Top