Sub extract_same_cells()
Dim sPath As String, sFile As String
Dim i As Long
With Application.FileDialog(msoFileDialogFolderPicker)
.Title = "Select Folder"
If .Show <> -1 Then Exit Sub
sPath = .SelectedItems(1) & "\"
End With
sFile = Dir(sPath & "*.xls*")
i = 2
With Sheets(1)
.Rows("2:" & Rows.Count).ClearContents
Do While sFile <> ""
.Range("A" & i).Value = GetObject(sPath & sFile).Sheets(1).Range("A5").Value
.Range("B" & i).Value = GetObject(sPath & sFile).Sheets(1).Range("A2").Value
i = i + 1
sFile = Dir()
Loop
End With
End Sub