ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Data Manipulation (https://www.excelbanter.com/excel-programming/327825-data-manipulation.html)

Arturo

Data Manipulation
 
Hello €“
I have a cell whose contents are C,C,C,D,D,C,C,C,C,C
Im 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

Toppers

Data Manipulation
 
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


"Arturo" wrote:

Hello €“
I have a cell whose contents are C,C,C,D,D,C,C,C,C,C
Im 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



All times are GMT +1. The time now is 03:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com