Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I copy and paste from word to excel, w/o being in one cell | Excel Discussion (Misc queries) | |||
How do I paste a Word document into an Excel cell | Excel Discussion (Misc queries) | |||
Paste from word to excel, into one cell. | Excel Discussion (Misc queries) | |||
How can I paste 429 character Excel cell in MS Word ? | Excel Discussion (Misc queries) | |||
copy a list of items from word and paste in cell | Excel Discussion (Misc queries) |