Cursor position

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
 
D

Dirk Goldgar

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.
 
Top