[vba]Sub snb()
c00 = "G:\OF\"
c01 = Dir(c00 & "*.xls*")
Do Until c01 = ""
With GetObject(c00 & c01)
c02 = .FileFormat
.Sheets(1).Copy
With ActiveWorkbook
.Sheets(1).Rows(2).Resize(1999).Delete .SaveAs c00 & Replace(c01, ".", "_1."), c02
.Close
End With
.Sheets(1).Rows(2001).Resize(ABS(.Sheets(1).UsedRange.Rows.Count - 2000)).Delete
.windows(1).visible=True
.Close True
End With
c01 = Dir
Loop
End Sub
[/vba]
You only need the .windows(1).visible=true line to make sure the file will be visible after reopening. Because the method getobject opens a file as a hidden file.I added ABS to prevent a negative resizing.