• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Coma betwwen two First name and last name in column B macro

Sunnyp


Do you need a Macro or a Formula?


In an adjacent column

You can use a simple =SUBSTITUTE(B2," ",", ")

Copy the new data /Paste Values

Then delete the original data
 
If you really do need some VBA code the following will do it:

[pre]
Code:
Dim c As Range
For Each c In Range("B2", Range("B65536").End(xlUp))
c.Value = Replace(c.Value, " ", ", ")
Next
[/pre]
 
Back
Top