Dear all,
Thank you for helping out. I have searched the forum for other threads that could assist, but did not find any, so here we go.
I have an Excel workbook with 6 different macros. Each macro searches row by row to find values, and with each hit it copies the row to the correct sheet.
An example of such macro:
Because of roughly 60,000 rows, this coding is slow, and crashes often. And, to add to that, I have 6 different macros that copies to 6 different sheets based on different criterias. E.g. Criteria1 to 10 goes to sheet1, Criteria11 to 15 goes to sheet2 and so on.Please Login or Register to view this content.
Therefore, my question is if it is possible to create an array instead? (other ideas are also more than welcome).
I was hoping that it would then be possible to do the following through 2 macros:
Macro 1:
Loop through all rows and store rows with Criteria1 to Criteria10 in Array1, Criteria11 to Criteria15 in Array2, Criteria16 to Criteria20 in Array3 and so on.
Macro 2:
Copy all rows from Array1 into sheet1
Copy all rows from Array2 into sheet2
and so on.
Thank you so much in advance. I am new to the array functions, and would really appreciate some help.
Kr Anders
Bookmarks