E
Exceljr
Hi, I'm trying to pull data from closed workbooks using VLookup.
have no trouble using a particular filename such as:
=VLOOKUP("Grand Total",'N:\Nurse\Archive\[20040223 Nurs
08AM.xls]NURSE'!R6C1:R25C5,5,FALSE)
But, everyday there is a new file with the current date in the nam
(the one above is from Feb 23 of 2004)
I'm trying to find a way to substitute the filename with a variable
something like:
DIM THEFILE AS STRING
THEFILE = N:\Nurse\Archive\[20040223 Nurse 08AM.xls
=VLOOKUP("Gran
Total",'N:\Nurse\Archive\[THEFILE]NURSE'!R6C1:R25C5,5,FALSE)
I'm not having any luck. Any ideas? Perhaps using VB code instead o
a worsheet function
have no trouble using a particular filename such as:
=VLOOKUP("Grand Total",'N:\Nurse\Archive\[20040223 Nurs
08AM.xls]NURSE'!R6C1:R25C5,5,FALSE)
But, everyday there is a new file with the current date in the nam
(the one above is from Feb 23 of 2004)
I'm trying to find a way to substitute the filename with a variable
something like:
DIM THEFILE AS STRING
THEFILE = N:\Nurse\Archive\[20040223 Nurse 08AM.xls
=VLOOKUP("Gran
Total",'N:\Nurse\Archive\[THEFILE]NURSE'!R6C1:R25C5,5,FALSE)
I'm not having any luck. Any ideas? Perhaps using VB code instead o
a worsheet function