pdb78,
Welcome to the forum!
In the future, please wrap your code in code tags per the forum rules (link in my sig).
As to your query, give this a try:
Sub tgr()
Const strFldrPath As String = "C:\myfolder\" 'Make sure to include the ending \
Dim inputfile As String
inputfile = Dir(strFldrPath & "*.xls")
Application.ScreenUpdating = False
Do While inputfile <> vbNullString
With Workbooks.Open(strFldrPath & inputfile)
.Sheets(1).Columns("A:Y").Value = .Sheets(1).Columns("A:Y").Value
.Sheets(2).Columns("A:Y").Value = .Sheets(2).Columns("A:Y").Value
.Close True
End With
inputfile = Dir
Loop
Application.ScreenUpdating = True
End Sub
Bookmarks