M
Markus
Here is my function. I need to import date from a closed
books without opening the closed books. I'm getting
desperate so if anyone wants to reply with email my
address is (e-mail address removed) I can send the
files if anyone wants to get a clear picture of what i've
done so far. I will make sure this is my last post on this
subject.
This function is set specifically to do what I need to do.
Except when I call the function I get data type mismatch
on the set wba line. I do not want to use "workbooks.open"
Is there a procedure or anything that I can ad to allow
this function to pull data from closed workbooks?
Public Function WriteValues(TheCase As Integer)
Dim wba As Workbook
Dim ls_Rangestringa As String
Dim ll_Rownumbera As Long
ll_Rownumbera = 1 + (TheCase * 40)
ls_Rangestringa = "D" + CStr(ll_Rownumbera)
Set wba = ("H:\My Documents\WorkInProgress\QARP2004
\ProgramReports\PG1Rep2004")
With ThisWorkbook.Worksheets("SR")
..Range("A8").Value = wba.Worksheets
("EvaluationCalculator").Range(ls_Rangestringa).Value
End With
End Function
books without opening the closed books. I'm getting
desperate so if anyone wants to reply with email my
address is (e-mail address removed) I can send the
files if anyone wants to get a clear picture of what i've
done so far. I will make sure this is my last post on this
subject.
This function is set specifically to do what I need to do.
Except when I call the function I get data type mismatch
on the set wba line. I do not want to use "workbooks.open"
Is there a procedure or anything that I can ad to allow
this function to pull data from closed workbooks?
Public Function WriteValues(TheCase As Integer)
Dim wba As Workbook
Dim ls_Rangestringa As String
Dim ll_Rownumbera As Long
ll_Rownumbera = 1 + (TheCase * 40)
ls_Rangestringa = "D" + CStr(ll_Rownumbera)
Set wba = ("H:\My Documents\WorkInProgress\QARP2004
\ProgramReports\PG1Rep2004")
With ThisWorkbook.Worksheets("SR")
..Range("A8").Value = wba.Worksheets
("EvaluationCalculator").Range(ls_Rangestringa).Value
End With
End Function