Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try:
Dim myStr As String Dim varData As Variant myStr = "ant,antique,art,bee,beautiful,bored,chores,dancin g,daytime" varData = Split(myStr, ",") Range("A1").Resize(UBound(varData) + 1) = Application.Transpose(varData) That basically just copied the string into column A. What I meant was, I was also thinking about a solution that doesn't involve spreadsheet cells. For example, if myStr = "ant,antique,art,bee,beautiful,bored,chores,dancin g,daytime" then the output should be: myStr2 = "--A--,ant,antique,art,--B--,bee, etc.." But, I'm happy with your initial solution. Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split data | Excel Discussion (Misc queries) | |||
I'm Lost... Bin? Delineate different processes with time samples | Excel Programming | |||
Split data and copy surrounding data | Excel Programming | |||
Split data into new sheets | Excel Discussion (Misc queries) | |||
how to split data into columns and arrange the resulting data | Excel Discussion (Misc queries) |