Go Back   TechArena Community > Software > Tips & Tweaks
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links


How to add commas after each text in each cell using Excel Macro

Tips & Tweaks


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-01-2012
Member
 
Join Date: Dec 2011
Posts: 61
How to add commas after each text in each cell using Excel Macro

Sponsored Links
I have a list of about 23,000 emails. I need to make an E-mail blast. The only way I know how to do that is by adding a comma at the end of each one. How can I save the hassle of inserting a comma manually into each cell? If you have any information then please do the reply.

Reply With Quote
  #2  
Old 06-01-2012
Member
 
Join Date: May 2009
Posts: 203
re: How to add commas after each text in each cell using Excel Macro

According to my information, you just try this out
  • In an adjacent helper column (column B), put this in B1 and copy down. =A1&","
  • Then do Copy > PasteSpecial > Values on that column to get rid of the formulas.
May this will help you out to do this query in excel.
Reply With Quote
  #3  
Old 06-01-2012
Member
 
Join Date: Nov 2009
Posts: 133
re: How to add commas after each text in each cell using Excel Macro

You should try this short macro, so for that you just have to create a sub procedure.

Quote:
Sub AddComma()

Dim cell As Range
For Each cell In Selection
If cell.Value <> "" Then
cell.Value = cell.Value & ","
Else: cell.Value = cell.Value
End If
Next cell
End Sub
  • Place the code in a general module.
  • And after that select the range of cells in question then run the macro.
Reply With Quote
Reply

  TechArena Community > Software > Tips & Tweaks


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to add commas after each text in each cell using Excel Macro"
Thread Thread Starter Forum Replies Last Post
Need help to convert a Text file to Excel via VBA Macro DEvOTeEL MS Office Support 1 24-02-2012 12:47 PM
Want help to add commas after a text in every cell of Microsoft Excel !Jumala! MS Office Support 2 23-02-2012 01:54 PM
Looking for a Excel Macro to delete rows which doesn’t contain a value in particular cell Antariksh Windows Software 6 23-07-2011 01:05 AM
Macro- Excel to copy cell content highlighted Anwar Windows Software 3 06-03-2009 01:04 PM
Excel Added macro for cell color Xylon Software Development 3 19-02-2009 11:15 AM


All times are GMT +5.5. The time now is 07:47 PM.