Example: I have a folder "C:\2011\" containing 3 files:
"Record_03 Nov.xlsx"
"Record_12 Apr.xlsx"
"Record_25 May.xlsx"
In these files above, there is only one sheet named "Summary"
In my current active sheet, i need a vlookup function in cell Q2. Table Array (Column P:Q) is from the file with latest date (in file name) in folder "C:\2011\". And the number of rows in this table array is variable for each file.
I manage to write a code to find the file name with latest date. But I couldn't set the vlookup to reference that file.
Error message: "Application-defined or Object-defined Error"
Any ideas???
Bookmarks