por opermty » 20 Jul 2006 15:26
Dejo la opcion de crear el mismo dato en la "hoja1" o bien en un archivo de texto cmo se dijo en primera instancia.
Sub Delimitador()
Application.ScreenUpdating = False
Dim mc
inicio = Time
' Primera fila
i = 1
Open "c:\nuevo.txt" For Output As #1
Do Until ActiveCell = Empty
Rows(i).Select
For Each xcell In Selection
mc = mc & xcell & "|"
If xcell = Empty Then Exit For
Next xcell
' Si quieres que se grabe en la hoja 1
Sheets("hoja1").Cells(i, 1).Value = mc
Write #1, mc
mc = ""
i = i + 1
Application.StatusBar = "Fila " & i
ActiveCell.Offset(1, 0).Select
Loop
Sheets("hoja1").Select
fin = Time
Application.ScreenUpdating = True
Application.StatusBar = "Tiempos: " & inicio & " " & fin
Close #1
End Sub