Hello
is there any way to make this code without open files when bring data ?
tha all files are exised in one folder .
Sub CopyRange()
Application.ScreenUpdating = False
Dim desWS As Worksheet, wb As Workbook, lRow As Long
Set desWS = ThisWorkbook.Sheets("Sheet1")
For Each wb In Workbooks
If wb.Name <> ThisWorkbook.Name Then
With wb.Sheets("DATA")
lRow = .Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
.Range("A2:E" & lRow).Copy
desWS.Cells(desWS.Rows.Count, "A").End(xlUp).Offset(1).PasteSpecial xlPasteValues
End With
End If
Next wb
Application.ScreenUpdating = True
End Sub