Alright so I just started using arrays with scripting dictionary because I'm trying to do some Index Match formulas on workbooks that are over 300,000 rows.
So I have the following code but I get an out of memory error sometimes when running it:
So pretty much what the above code is saying is that my unique identifier is in column 1 of both worksheets which is what the code is looking up. I want to return column 7 from worksheet 2, and put the result in column 16 of worksheet 1.![]()
Please Login or Register to view this content.
The code works, but I get an out of memory error when running it on very large workbooks sometimes. I started using this code and my array was only the first 5 columns (x, 5), but it seems when I moved it to 7 columns (x, 7) that is when I'm getting the memory errors as each column has 300k+ rows. So I'm wondering if it's possible to adjust this array to only include my necessary columns (Columns 1 and Column 7) and leave out the other ones from the array?
Thanks.
Bookmarks