Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Identify second line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yagna - 28 Mar 2008 11:30 GMT
I have a strange issue, in a cell I have two lines which is entered by the
user using alt+enter. Now I need to segregate only the second from each cell
& manipulate teh data furhter. This data is full of text.
for eg: NCO
          Yagna

Text to columns delimit or fixed width is not sovling the issue, the data I
require. Any help on this.

thanks,
Yagna.
Bob Phillips - 28 Mar 2008 11:36 GMT
This worksheet function should do it

=MID(D1,FIND(CHAR(10),D1)+1,99)

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>I have a strange issue, in a cell I have two lines which is entered by the
> user using alt+enter. Now I need to segregate only the second from each
[quoted text clipped - 9 lines]
> thanks,
> Yagna.
NateBuckley - 28 Mar 2008 12:19 GMT
You could try the following code, Works for me when trying it.
You'll have to change the sheet name and which cells to look at (obviously).
Hope this helps.

   Dim splitArray() As String
   splitArray = Split(Sheets("SheetName").Cells(1, 1).Value, vbLf)
   MsgBox splitArray(1) 'Displays the second word from the sheet.

> I have a strange issue, in a cell I have two lines which is entered by the
> user using alt+enter. Now I need to segregate only the second from each cell
[quoted text clipped - 7 lines]
> thanks,
> Yagna.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.