View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Oorang[_3_] Oorang[_3_] is offline
external usenet poster
 
Posts: 1
Default Marco - I need to trim/move the text from the beginning of eac


Well that was a little confusing, but I think this might do what you
want.

Code:
--------------------
Sub getCase()
Dim c As Excel.Range
Dim x As Long
Dim s() As String
For Each c In Range("A1:A" & Cells(Rows.Count, 1).End(xlUp).Row)
s = Split(c.Value, " v. ")
c.Value = s(0)
c.Offset(0, 1).Value = s(1)
Next
End Sub
--------------------


--
Oorang
------------------------------------------------------------------------
Oorang's Profile: http://www.thecodecage.com/forumz/member.php?userid=129
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=88