Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This works great for cell A1 to rows in D. How do I modify the code to do A1:Ax into column D down as far as needed? My "Error 400" code attempt at it follows this working code. Thanks. Howard Option Explicit Sub SuperSplit() Dim vArray As Variant Dim x As Long vArray = Split(Application.Transpose(Range("A1")), ", ") '" / ") For x = 0 To UBound(vArray) Range("D1").Offset(x, 0).Value = vArray(x) Next End Sub Not working: Sub SuperSplitX() Dim vArray As Variant Dim x As Long Dim c As Range Dim y As Long y = 1 For Each c In Range("A1:A3") vArray = Split(Application.Transpose(Range("A:" & y)), ", ") '" / ") y = y + 1 For x = 0 To UBound(vArray) Range("D1").End(xlUp).Offset(x, 0).Value = vArray(x) Next Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
List cell values seperated by comma if criteria met | Excel Worksheet Functions | |||
Find the sum of Comma Seperated Values In a Cell | Excel Worksheet Functions | |||
column values to a cell with comma seperated | Excel Worksheet Functions | |||
Reading from comma seperated List | Excel Programming | |||
Problem with comma seperated list | Excel Programming |