Combining Cell into One

  • Thread starter Thread starter zyx777
  • Start date Start date
Z

zyx777

Is there an easy way to combine say A1 to A5000 to B1 seaparated by comma ?
 
Sub combine()

Dim text as string, i As Long
For i = 1 To 5000
text = text & Cells(1, 1)
Next
[b1] = text

End Sub


PAtrick Molloy
Microsoft Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top