Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pal Pal is offline
external usenet poster
 
Posts: 27
Default cursor selected range from a text box

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$



  #2   Report Post  
Posted to microsoft.public.excel.programming
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$





  #3   Report Post  
Posted to microsoft.public.excel.programming
Pal Pal is offline
external usenet poster
 
Posts: 27
Default cursor selected range from a text box

Thanks!

I also want the value of textbox1.SelText to be updated live so it could be
used with custom functions
as I adjust the selected range.
I created a function to show the selected string from the text box but it
did not work.


Function selected(tmptext As String)
tmptext = TextBox1.SelText
selected = tmptext
End Function

In cell a23 I put:
+selected

But it did not work.

Thanks
Pal




"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
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$







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the black selected-cell-border to another color (cursor) Pierre Excel Discussion (Misc queries) 0 February 2nd 10 02:21 PM
HOW TO COLOR CELLS SELECTED WITH THE CURSOR RICKY-D Excel Discussion (Misc queries) 2 May 5th 08 02:19 PM
Save a selected range to a new text file in excel [email protected] Excel Discussion (Misc queries) 0 October 3rd 06 11:27 PM
Trying to highlight (bold,red) selected text within range tmayhall Excel Discussion (Misc queries) 0 August 21st 06 10:03 PM
Default cursor/selected cell position after protecting Stilla Excel Worksheet Functions 0 December 8th 05 02:28 PM


All times are GMT +1. The time now is 03:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"