Managed to find some code to add to what I had. This extracts data from a closed workbook. Hope it can be of help to someone.
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
Private Function GetYds(path, file, sheet, ref)
' Retrieves a value from a closed workbook
Dim arg As String
' Make sure the file exists
If Right(path, 1) <> "\" Then path = path & "\"
If Dir(path & file) = "" Then
GetValue = "File Not Found"
Exit Function
End If
' Create the argument
arg = "'" & path & "[" & file & "]" & sheet & "'!" & _
Range(ref).Range("A1").Address(, , xlR1C1)
' Execute an XLM macro
GetYds = ExecuteExcel4Macro(arg)
End Function
Sub TestGetYds()
Dim p As String, f As String
Dim s As String, a As String
p = ThisWorkbook.path
f = InputBox("Enter the name of the source report, Leave blank to Exit")
s = "Sheet1"
a = "C12"
If f <> "" Then
MsgBox GetYds(p, f, s, a)
destcell = InputBox("Enter the destination cell, Leave blank to Exit")
If destcell <> "" Then
Windows("Jadwin FY10 Yardage.xlsm").Activate
ActiveWindow.WindowState = xlNormal
Range(destcell).Select
ActiveCell.Value = GetYds(p, f, s, a)
Else
MsgBox ("You didn't enter a cell! I'm gone!")
Exit Sub
End If
Else
MsgBox ("You didn't enter a report! Bye!")
Exit Sub
End If
End Sub