I was having issue in the line
current.Worksheets("Sheet1").Range("A14").Select
I dont know what i did wrong and even to paste is also problem currently.
Sub copyall()
Dim lastrow As Long
lastrow = Sheets("Sheet1").Cells(Rows.Count, 1).End(xlUp).Row
MsgBox (lastrow)
Dim source As Workbook
Dim current As Workbook
Dim x As String
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For i = 1 To lastrow
x = Sheets("Sheet1").Cells(i, 1)
Set source = Workbooks.Open(x)
Set current = ThisWorkbook
'source.Worksheets("Adjustment").Columns.EntireColumn.Hidden = False
'source.Worksheets("Adjustment").Rows.EntireRow.Hidden = False
Dim f As Range
Set f = source.Worksheets("Adjustment").Cells.Find(what:="Adjustment Type", lookat:=xlWhole, MatchCase:=True)
Dim lastrow_source As Integer
y = source.Worksheets("Adjustment").Cells(f.Row + 1, f.Column)
lastrow_source = Sheets("Adjustment").Cells(Rows.Count, 1).End(xlUp).Row
MsgBox (y)
source.Worksheets("Adjustment").Range(source.Worksheets("Adjustment").Cells(f.Row + 1, f.Column), Cells(lastrow_source, 23)).Select
Application.CutCopyMode = False
Selection.Copy
current.Worksheets("Sheet1").Range("A14").Select
ActiveSheet.Paste
source.Close
MsgBox ("Imported")
Next i
End Sub