Hi, found the below code which is almost what i am after. I need the code to be flexible where the code will allow me to choose the file and when i choose look for sheet "Current", if found then Copy A1:D to Thisworkbook sheet("Test").Range("A1") Else Exit Sub
</pre>
Code:
Sub OpenCopyAndClose()
Dim excelFile As String
excelFile = "myfile.xls"
'open excel file "myfile.xls" in drive D:\
Workbooks.Open "D:\" & excelFile
'copy value of range A1 from "myfile.xls"
ThisWorkbook.Sheets(1).Range("D1").Value = _
Workbooks(excelFile).Sheets(1).Range("A1").Value
'close "myfile.xls" file and don't save any changes
Workbooks(excelFile).Close SaveChanges:=False
End Sub