Hello,
I wrote the following program to split a txt which is in the active cell. Now should the program spring from the active cell to the last cell which is not empty. How can I do this?
Thanks JosephPHP Code:
Sub Splittxt()
Dim txt As String
Dim i As Integer
Dim FullName As Variant
txt = ActiveCell.Value
FullName = Split(txt, "#")
For i = 0 To UBound(FullName)
Cells(1, i + 1).Value = FullName(i)
Next i
End Sub
Bookmarks