Yep, I think so.know what I mean?
Sub Demo()
Dim fName$
fName = [A1].Value
Application.ScreenUpdating = False
On Error Resume Next
If Len(fName) <> 0 Then
Workbooks.Open fName
If Err = 0 Then
With Workbooks(fName)
'change Sheet1 to the sheet with the value you want from A2
'change A2 to the cell you want the value of
'change D10 to the cell you want that value displayed in
.Sheets("Sheet1").[A2].Copy [D10]
.Close False
End With
Else
MsgBox ("The file '" & fName & "' does not exist in the specified file path."), , fName & " not found"
End If
End If
Err.Clear
Application.ScreenUpdating = True
End Sub
Sub test()
Dim myF As String, ff As Integer, txt As String
ff = FreeFile
myF = Range("a1").Value
txt = Space(FileLen(myF))
Open myF For Binary As #ff
Get #ff, ,Txt
Close #ff
Sheets("Sheet1").Range("a2").Value = txt
End Sub