LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default Cut last word in cell and paste in next...

Try:

Sub xx()
' Or use a function passing in the range as an argument
' i.e. function xx(byval MyRange as range)
For Each Cell In Range("A1:A2")
CurrentCell = Trim(Cell.Value)
Cell.Offset(0, 1) = Mid(CurrentCell, InStrRev(CurrentCell, " "))
Cell.Value = Left(CurrentCell, InStrRev(CurrentCell, " "))
Next
End Sub

Assumes that words are delimited by a space e.g This Example, This is
another example etc.


"KYO" wrote:


Hi,

I need to select the last word in a cell for a whole column (B) and
paste these
words into Column C...

I am new to this forum and excel and any tips would be greatly
appreciated. :)


--
KYO
------------------------------------------------------------------------
KYO's Profile: http://www.excelforum.com/member.php...o&userid=16120
View this thread: http://www.excelforum.com/showthread...hreadid=275620


 
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
How can I copy and paste from word to excel, w/o being in one cell joster Excel Discussion (Misc queries) 0 June 22nd 07 09:13 PM
How do I paste a Word document into an Excel cell callawayx18 Excel Discussion (Misc queries) 0 January 10th 07 10:46 PM
Paste from word to excel, into one cell. tonym Excel Discussion (Misc queries) 7 September 27th 06 01:39 PM
How can I paste 429 character Excel cell in MS Word ? Marie-Luisa Excel Discussion (Misc queries) 1 July 20th 06 02:27 PM
copy a list of items from word and paste in cell Priscilla Excel Discussion (Misc queries) 1 November 11th 05 06:51 PM


All times are GMT +1. The time now is 11:29 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"