Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jordan,
In Tom's SplitValues Sub, which I prefer to my suggestion, there is a small typo in the line: cell.offset(0,1).Value = Right(sStr,len(sStr)-1) which should read: cell.offset(0,1).Value = Right(sStr,len(sStr)-2) --- Regards, Norman "Tom Ogilvy" wrote in message ... Sub SplitValues() Dim sStr as String, rng as Range set rng = Range("A1:A2000") for each cell in rng sStr = Trim(Cell.Value) if sStr < "" then Cell.Value = "'" & Left(sStr,2) cell.offset(0,1).Value = Right(sStr,len(sStr)-1) end if Next End sub -- Regards, Tom Ogilvy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
modify linked cells without breaking link | Excel Discussion (Misc queries) | |||
split text in one cell into multiple cells without breaking the wo | Excel Worksheet Functions | |||
breaking text in one cell into two cells | Excel Discussion (Misc queries) | |||
Breaking a Cell | Excel Worksheet Functions | |||
Breaking a word by each alphabet and inputing it in different cells | Excel Programming |