Hi all, again, TIA!
I'm trying to figure out how to clean up the "select" in a simple single column (A) text to column. When I try to revise "select" to a range, I get a "Can only convert one column." error.
2nd question. Why does the array start with "0" and not "1"?
Recording
This won't work
Ron
I'm trying to figure out how to clean up the "select" in a simple single column (A) text to column. When I try to revise "select" to a range, I get a "Can only convert one column." error.
2nd question. Why does the array start with "0" and not "1"?
Recording
VBA Code:
Range("A2").End(xlDown).Select
Selection.TextToColumns Destination:=Range("A2"), DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 2), Array(9, 9))
VBA Code:
Dim LastCol As Integer
Dim LastRow As Long
Dim Rng As Range
Set Rng = Range("$A2", Cells(LastRow))
With Rng
.TextToColumns Destination:=Range("A2"), DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(9, 9))
End With 'Rng
Ron