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("sheet1")
S1.Select
[A29:FD65536].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("sheet1").Select
Range("A29:FD" & [FD65536].End(3).Row).Copy S1.Cells(65536, 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
i solve it but now i have another problem;
how can i add more than one sheet
sheet1 to sheet1
sheet2 to sheet2
sheet3 to sheet3
sheet4 to sheet4