ADAMC
Well-known Member
- Joined
- Mar 20, 2007
- Messages
- 1,169
- Office Version
- 2013
- Platform
- Windows
Hello all. Thank you in advance for any help I will try and explain and I hope someone can help.
I have a book called book 1. I would like some VBA in book 1 which will vlookup column A in a closed workbook called Book 2 returning column g of book 2 in column g of book 1.
The only problem is I book 2 is formatted like Book2 DD/MM/YYYY.xlsx and I always need to open and lookup column G from book 2 with the previous days date or today -1.
With some google searches I can do this when the file is the same name but not when the file is today’s date minus 1 each day.
Can anyone help?
Thank you!
I have a book called book 1. I would like some VBA in book 1 which will vlookup column A in a closed workbook called Book 2 returning column g of book 2 in column g of book 1.
The only problem is I book 2 is formatted like Book2 DD/MM/YYYY.xlsx and I always need to open and lookup column G from book 2 with the previous days date or today -1.
With some google searches I can do this when the file is the same name but not when the file is today’s date minus 1 each day.
Can anyone help?
Thank you!