Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
DAER ALL
I have 3 thou odd names in excel97. The names are entered like A.S.R.CHARLIE; P.K.WHITE; M.PETER and so on. Can u pls sugest VB code so that I can run through each cell and take these initials and attach it at the end of the name after giving a space or two like CHARLIE A.S.R; PETER M. and so on. Pls help. This is posted again as my first one did not get posted. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please check your previous posts. This has already been asnwered...
-- HTH... Jim Thomlinson "CAPTGNVR" wrote: DAER ALL I have 3 thou odd names in excel97. The names are entered like A.S.R.CHARLIE; P.K.WHITE; M.PETER and so on. Can u pls sugest VB code so that I can run through each cell and take these initials and attach it at the end of the name after giving a space or two like CHARLIE A.S.R; PETER M. and so on. Pls help. This is posted again as my first one did not get posted. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Google Groups is now only 6-8 hours behind so the multiple posts should start
slowing down. "Jim Thomlinson" wrote: Please check your previous posts. This has already been asnwered... -- HTH... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For "Pete's sake" this guy needs prog. help not a history of post or
post/post postings statistics..... Hope this helps......or puts you on the right path mate. Put names in column A Sub Name_IT_Back() Cell = Cells(Rows.Count, 1).End(xlUp).Address While Range(Cell).Row < 1 Posi = Trim(Len(Range(Cell).Value) - InStrRev(Range(Cell).Value, ".")) Range(Cell).Offset(0, 1).Value = Right(Range(Cell).Value, Posi) & " " & _ Left(Range(Cell).Value, Len(Range(Cell).Value) - Posi) Cell = Range(Cell).Offset(-1, 0).Address Wend End Sub "CAPTGNVR" wrote in message ps.com... DAER ALL I have 3 thou odd names in excel97. The names are entered like A.S.R.CHARLIE; P.K.WHITE; M.PETER and so on. Can u pls sugest VB code so that I can run through each cell and take these initials and attach it at the end of the name after giving a space or two like CHARLIE A.S.R; PETER M. and so on. Pls help. This is posted again as my first one did not get posted. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
D/Mike
lol, You really very understanding. The problem was I was checking on google and it never showed up till Peter Richardson sent me an email to see in msoffice directly. Well I tried your code but gives compile error for """"InStrRev"""". Pls note I am using excel 97. And also have two names like P.V.R.ALEX MATHEWS AND SO ON. "Mike" wrote: For "Pete's sake" this guy needs prog. help not a history of post or post/post postings statistics..... Hope this helps......or puts you on the right path mate. Put names in column A Sub Name_IT_Back() Cell = Cells(Rows.Count, 1).End(xlUp).Address While Range(Cell).Row < 1 Posi = Trim(Len(Range(Cell).Value) - InStrRev(Range(Cell).Value, ".")) Range(Cell).Offset(0, 1).Value = Right(Range(Cell).Value, Posi) & " " & _ Left(Range(Cell).Value, Len(Range(Cell).Value) - Posi) Cell = Range(Cell).Offset(-1, 0).Address Wend End Sub "CAPTGNVR" wrote in message ps.com... DAER ALL I have 3 thou odd names in excel97. The names are entered like A.S.R.CHARLIE; P.K.WHITE; M.PETER and so on. Can u pls sugest VB code so that I can run through each cell and take these initials and attach it at the end of the name after giving a space or two like CHARLIE A.S.R; PETER M. and so on. Pls help. This is posted again as my first one did not get posted. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to keep zeros at the begining of a number | Excel Worksheet Functions | |||
"cannot shift objects off sheet" REAL help needed | Excel Discussion (Misc queries) | |||
How do I remove the ' from the begining of value in a cell | Excel Programming | |||
option to keep zero at begining of number | Excel Discussion (Misc queries) | |||
how to add symbol automatically at begining and end | Excel Discussion (Misc queries) |