This is what i get when i run the routine
Sub ImportFile()
'
' ImportFile Macro
' Macro recorded 5/17/2012 by Louis Napoli
'
'
Workbooks.OpenText Filename:="C:\Excel VBA Practice\Ord9711.txt", Origin:= _
437, StartRow:=4, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), _
Array(8, 1), Array(20, 1), Array(26, 1), Array(41, 1), Array(49, 1), Array(59, 1), Array(67 _
, 1)), TrailingMinusNumbers:=True
With ActiveWindow
.Top = 9.25
.Left = 166
End With
Sheets("Ord9711").Select
Sheets("Ord9711").Move Before:=Workbooks("Lesson2.xls").Sheets(1)
With ActiveWindow
.Top = 34
.Left = 15.25
End With
Rows("2:2").Select
Selection.Delete Shift:=xlUp
Range("A1").Select
End Sub
This is what the book shows
NnSub ImportFile()
'
' ImportFile Macro
' Macro recorded 11/16/96 by Reed Jacobson
'
'
Workbooks.OpenText _
Filename:="C:\Excel VBA Practice\Ord9711.txt", _
Origin:=xlWindows, _
StartRow:=4, _
DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 1), Array(8, 1), _
Array(20, 1), Array(26, 1), Array(41, 1), _
Array(49, 1), Array(59, 1), Array(67, 1))
With ActiveWindow
.Width = 452.25
.Height = 254.25
End With
Sheets("Ord9711").Select
Sheets("Ord9711").Move _
Before:=Workbooks("Lesson2.xls").Sheets(1)
Range("A2").Select
Selection.EntireRow.Delete
Range("A1").Select
End Sub
I see similarities, but don't understand the differences. Is their a significant difference?