Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You will have to change the range to your actual, but the rest will run as
is. Sub dk() Dim c As Range For Each c In Range("B2:B7") '<<<change to actual c.Characters(2, InStr(c, " ") - 1).Delete Next End Sub "sam" wrote in message ... Hi All, How can I extract First letter from first name, remove the space between first and last name and keep the last name? For eg: I have a list of Names in this format: John Doe Will Smith and I want them like this: jdoe wsmith Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extract characters from Right of string | Excel Worksheet Functions | |||
How to extract specific text from a string of characters | Excel Worksheet Functions | |||
Extract all text without spaces and special characters | Excel Worksheet Functions | |||
Extract string w/ 7 characters | Excel Programming | |||
Extract string after specific characters | Excel Programming |