determine SelectionStart in Listbox TextArea

How can I determine the cursor position in a text, hence the SelectionStart, in Listbox.CellTypes.TextArea ?

Me.ActiveCell returns the active cell, you will need to cast it to use it so this is the syntax:


for example, in CellTextChange put:


to display the value in the messages window of the IDE during debug.


Or you could use


if you don’t want the hassle of casting.

You’re a hero, Julian! Thanks a lot. Do you know, by any chance, if there is a way to determine the total number of characters in a TextArea or TextField anyways?

Oh, with a little fiddling about: Me.ActiveTextControl.Value.bytes