I have pasted a text file with fixed widths into column A. I tried recording the steps but when running the macro after repasting the text into column A get the following error- Run-time error 1004
Macro will be used to complete the same task on multiple files all with the same column spacing. Thanks for any help!
Sub Text2Columns()
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("a3"), DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(48, 1), Array(65, 1), Array(88, 1), Array(110, 1), _
Array(131, 1), Array(154, 1)), TrailingMinusNumbers:=True
Columns("A:A").ColumnWidth = 12.86
End Sub