Dim OpenFileName As Variant, tmp As String, i As Long
Dim ReturnBook As Workbook, TargetBook As Workbook
OpenFileName = Application.GetOpenFilename(FileFilter:="Microsoft Excelブック,*.xls", MultiSelect:=True)
For i = 1 To UBound(OpenFileName)
Set TargetBook = Workbooks.Open(OpenFileName(i))
var val1=TargetBook .Worksheets(1).Range("A1")
var val2=TargetBook .Worksheets(1).Range("B2")
TargetBook.Close
Next i