Thread: macro for exctracting data from another workbook

Joined
Aug 23, 2012
Messages
1
Reaction score
0
hey i need to make a tool that extracts data from different workbooks and paste it in the current workbook.
Right now i am using vlookup function

VLOOKUP(A5,[workbook1.xlsx]$B$8:$AN$319,26,False) but it extracts data from workbook1 only one time. My job requires me to replace the old workbook1 with the new one daily so i want the cells to update themselves
whenever the workbook1 is updated or replaced with new1

need help asap
 
Joined
Mar 20, 2012
Messages
764
Reaction score
4
The problem you're going to run into here is that Excel is only good at replacing values from other workbooks a couple different ways. One way is to have both files open, and save the file with the references to the new workbook. Another possible solution is to use the Edit Links window in the workbook with the formulas to Update Links. How you do this will vary quite a bit depending on the version of Excel you have. You can also open both workbooks, and then to force an update, press F9 in the file with the formulas. Basically, Excel won't automatically pull values from a file that is closed unless you do something. I'll see if I can find a better answer for you though...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top