Showing portion of text selected

L

Lulu

Screen.activecontrol.name tells me the name of the text
box that has the focus.

Screen.activecontrol tells me the value inside the text
box that has the focus

But is there a qualifier I can use to see the value of the
portion of the text box string that I have selected?

Say you have a text box with the value ABC Company. You
select only the ABC portion of that string (as you would
with a filter by selection for instance). Is there
anything I can write which will tell me only the string I
have selected?

Thanks for any ideas.
 
A

Allen Browne

SelStart tells you the character position where the selection starts, and
SelLength tells you the number of characters selected.

Mid() gives you the actual characters.
 
Top