Data Manipulation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello –
I have a cell whose contents are C,C,C,D,D,C,C,C,C,C
I’m looking for direction on how to store that in a variable and spit out
each letter into individual cells. Text to column is not the optimal
approach as there is more to the model that is described here. I need to
learn a different approach…

Sincerely,
Arturo
 
Hi,
Try this:


Sub SplitMe()

Dim v As Variant

Range("a1").Select
v = Split(ActiveCell, ",")
For i = 0 To UBound(v)
Cells(i + 1, "B") = v(i)
Next i

End Sub


HTH
 

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