View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vasant Nanavati Vasant Nanavati is offline
external usenet poster
 
Posts: 1,080
Default cursor selected range from a text box

tmpText$ = TextBox1.SelText

--

Vasant


"Pal" wrote in message
news:td0Qb.127408$xy6.469903@attbi_s02...
How can I set the cursor selected range, from a text box, as input?

I am using the following but it only returns the ENTIRE text from the box,
not
my cursor selected range in the Text Box.

tmpText$ = TextBox1.Text
MsgBox tmpText$