Let's say that I have an excel sheet with words seperated by commas, and I want to create new lines/hard returns - how would I create a macro for that. So Far I was able to find a method to do this to the first comma on a cell, but not how to loop through all the commas in a cell and not the first one.
Here is what I am usinfg in my macro to accomplish this:
any one know what will change this? I am not a macro guy by any stretch, but I would like this functionality and recording the macro doesn't accomplish what I want either.
Web site design, internet marketing, SEO and business solutions company.
Here is what I am usinfg in my macro to accomplish this:
Code:
Public Sub Create_List()
For Each Cell In Selection
'Cell.Value = Replace(Cell.Value, ",", Chr(10), 1, 1, vbTextCompare)
Cell.Value = Replace(Cell.Value, ",", Chr(10), 1, 1, vbTextCompare)
Next Cell
End Sub
any one know what will change this? I am not a macro guy by any stretch, but I would like this functionality and recording the macro doesn't accomplish what I want either.
Web site design, internet marketing, SEO and business solutions company.