I am trying to get a cell to split down the based on the values returned from a formula. It wont let me upload a photo so I will do the best I can to explain.
The following is my code to split the cell:
Sub splitText()
Dim splitVals As Variant, totalVals As Long, I As Integer
splitVals = Split(ActiveCell.Value, " ")
totalVals = UBound(splitVals)
range(Cells(ActiveCell.Row, ActiveCell.Column + 1), Cells(ActiveCell.Row,ActiveCell.Column + 1 + totalVals)).Value = splitVals
End Sub
I am wondering if there is a way to get my program set so that it will split all of the cells in column D, instead of just the active cell.