i change code like this but now it takes more time to copy the pages to pages i have 52 sheets at 4 files to update weekly at mail file ;
is there any easy way to do this
Sub VERİLERİ_G?NCELLE()
Application.ScreenUpdating = False
Dosya_Yolu = "C:\Documents and Settings\admin\Desktop\ANA DOSYA\1\"
Set S1 = Workbooks("ANA DOSYA.xls").Sheets("Sayfa1")
S1.Select
[A29:FD6000].ClearContents
Set Klas?r = CreateObject("Scripting.FileSystemObject").GetFolder(Dosya_Yolu).Files
For Each Dosya In Klas?r
If InStr(Dosya.Name, ".xls") > 0 Then
If Dosya.Name <> "ANA DOSYA.xls" Then
Workbooks.Open Filename:=Dosya
Sheets("Sayfa1").Select
Range("A29:FD6000" & [FD6000].End(3).Row).Copy S1.Cells(6000, 1).End(3).Offset(1)
ActiveWorkbook.Close True
End If
End If
Next
Set S1 = Workbooks("ANA DOSYA.xls").Sheets("Sayfa2")
S1.Select
[A29:FD6000].ClearContents
Set Klas?r = CreateObject("Scripting.FileSystemObject").GetFolder(Dosya_Yolu).Files
For Each Dosya In Klas?r
If InStr(Dosya.Name, ".xls") > 0 Then
If Dosya.Name <> "ANA DOSYA.xls" Then
Workbooks.Open Filename:=Dosya
Sheets("Sayfa2").Select
Range("A29:FD6000" & [FD6000].End(3).Row).Copy S1.Cells(6000, 1).End(3).Offset(1)
ActiveWorkbook.Close True
End If
End If
Next
Application.ScreenUpdating = True
MsgBox "Veriler aktarılmıştır.", vbInformation
End Sub