LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default selecting txt before a, or return character?

i have the following code which gets the text from an autoshape oval an
puts it into a textbox

Worksheets("3.data").TextBox1.Text = _
Worksheets("2.pla
only").Shapes(Application.Caller).TextFrame.Charac ters.Text

my problem is some of these ovals have more than one bit of text.
basically they are reference numbers, they are mostly just one numbe
per oval, but some have for example 6675-6679, <carriage retur
hereSH-639 or even just 6675,<return hereTA06

and im trying to perform searches based on the text it gets out of th
ovals so i need a way of selecting the text from the start to eithe
the ',' character, the '-' character or a return/new line character
and putting that into the textbox rather than the current way o
sticking the entire lot of text into it.

ideally in situations where theres more than one reference in the ova
i would provide a quick way of choosing which one they want to us
after they click that oval but i think this may be too complicated.

any ideas

--
Message posted from http://www.ExcelForum.com

 
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
Return position of 2nd, 3rd, ect occurrence of a character in a st jheby Excel Discussion (Misc queries) 5 April 21st 23 09:06 AM
Printer return character AndyLV Excel Discussion (Misc queries) 2 June 30th 08 04:29 PM
SELECTING FROM A DROP DOWN LIST BY TYPING FIRST CHARACTER MARGARET KISS New Users to Excel 3 January 9th 08 08:53 PM
Using replace to get rid of paragraph return character Raku Excel Discussion (Misc queries) 11 May 10th 07 11:20 PM
Return the 6th thru the nth character? HBF Excel Worksheet Functions 5 June 21st 06 09:18 PM


All times are GMT +1. The time now is 08:33 AM.

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

About Us

"It's about Microsoft Excel"