TheComputerDude
Programmer
I need to dynamically convert parts of a spreadsheet to columns. I used a macro to get the following syntax:
Selection.TextToColumns Destination:=Range("A7"), DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 1), Array(11, 1), Array(24, 1), Array(37, 1), Array(50, 1), _
Array(63, 1), Array(76, 1), Array(89, 1), Array(102, 1), Array(115, 1)), _
TrailingMinusNumbers:=True
My question is how can I dynamically change the field info section? Any help would be greatly appreciated!
Selection.TextToColumns Destination:=Range("A7"), DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 1), Array(11, 1), Array(24, 1), Array(37, 1), Array(50, 1), _
Array(63, 1), Array(76, 1), Array(89, 1), Array(102, 1), Array(115, 1)), _
TrailingMinusNumbers:=True
My question is how can I dynamically change the field info section? Any help would be greatly appreciated!