We have to import data from several workbooks into one for calculation purposes. This was done manually by opening multiple workbooks and coping & pasting into one “master” workbook. These files are very large and if too many were open, Excel would lock up. Using VBA the various files are opened one at a time and the data is copied from them into the “master” file.
I found a VBA function to get a value from a closed file on John Walkenbachs’ site. This is a pretty slick function for small amounts of data. It works like a charm, but it is fairly slow when importing test data (12 columns, 100 rows). It would take days to populate the “master” file with all our required data (14 different sheets – 1 column of 4400 rows from each sheet). Have any of you any ideas on how to increase the speed of this function or to accomplish the same thing in VBA?
The current procedure we are using works just fine. This just seems like a great idea, importing data without having to open a workbook. According to Mr. Walkenbach, “VBA does not include a method to retrieve a value from a closed file.” Attention Microsoft – Why was this function possible in an ancient version of Excel and not in VBA?
I appreciate all the assistance, information and direction that this board and all the individuals who participate give.
Thanks in advance,
Brent