Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have along list of names, like WENDY ROCHESTER which I want to change to ROCHESTER WINDY Can a kind sole tell me how? Thanks -- Norton Professional 2004 says this email is clean...believe it |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming that the format is always going to be:
FirstName LastName 'In this example, range is A2:A100 Sub SwitchIt() Dim Cell As Range For Each Cell In Range("A2:A100") If Len(Cell.Value) < 0 Then Cell.Value = Mid(Cell.Value, Application.Find (" ", Cell.Value, 1) + 1, 100) & " " & Left(Cell.Value, Application.Find(" ", Cell.Value) - 1) End If Next Cell End Sub -----Original Message----- Hi I have along list of names, like WENDY ROCHESTER which I want to change to ROCHESTER WINDY Can a kind sole tell me how? Thanks -- Norton Professional 2004 says this email is clean...believe it . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks very much...works great
"Tod" wrote in message ... Assuming that the format is always going to be: FirstName LastName 'In this example, range is A2:A100 Sub SwitchIt() Dim Cell As Range For Each Cell In Range("A2:A100") If Len(Cell.Value) < 0 Then Cell.Value = Mid(Cell.Value, Application.Find (" ", Cell.Value, 1) + 1, 100) & " " & Left(Cell.Value, Application.Find(" ", Cell.Value) - 1) End If Next Cell End Sub -----Original Message----- Hi I have along list of names, like WENDY ROCHESTER which I want to change to ROCHESTER WINDY Can a kind sole tell me how? Thanks -- Norton Professional 2004 says this email is clean...believe it . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Glad you go the answer you wanted, but if you are putting
the surname first why aren't you either placing a comma afterward the surname (like in the US) or making sure that the surname is capitalized, and the firstname is proper case as asked for on some international registration forms. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "PCOR" wrote in message ogers.com... Thanks very much...works great "Tod" wrote in message ... Assuming that the format is always going to be: FirstName LastName 'In this example, range is A2:A100 Sub SwitchIt() Dim Cell As Range For Each Cell In Range("A2:A100") If Len(Cell.Value) < 0 Then Cell.Value = Mid(Cell.Value, Application.Find (" ", Cell.Value, 1) + 1, 100) & " " & Left(Cell.Value, Application.Find(" ", Cell.Value) - 1) End If Next Cell End Sub -----Original Message----- Hi I have along list of names, like WENDY ROCHESTER which I want to change to ROCHESTER WINDY Can a kind sole tell me how? Thanks -- Norton Professional 2004 says this email is clean...believe it . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Family Medical Leave Calculation | Excel Discussion (Misc queries) | |||
family budget template for excel | New Users to Excel | |||
How do I set up a spreadsheet for a family tree? | Excel Discussion (Misc queries) | |||
Family tree | Excel Discussion (Misc queries) | |||
Family Chores List ??? any ideas | Charts and Charting in Excel |