I have a worksheet called Regions that has 6 worksheets - one for each geographical sales region. Each Region worksheet has a list of projects. Each project can either be "open" or "closed". The number of projects in each list changes, as projects are added, deleted, or midified. The number of projects in each region varies, but averages 200 of which about half are "open."
In a sperate summary workbook, I want to keep a consolidated list of all open projects. This consolidated list will be updated weekly and I want a macro that will grab the list of open projects from each Region worksheet and put them into the one consolidated list in this Summary workbook.
My question is, what is the best way to do this. I have thought of two options.
1) Go to the first Region worksheet and copy the list in that worksheet, including all Open and Closed projects. Paste this to the consolidated list. Go to the next Region sheet, copy the list there, return to the consolidated list and append this new data to what's already been copied. Then go to the next Region worksheet, and so on. Once all data has been copied, sort by Open and Closed and delete the Closed.
2) Go to each Region worksheet, do a loop in the macro that runs through each row and let the value of the next empty cell in the consolidated list equal the value of the current cell in the Region worksheet. Use an IF statement in the loop to exclude all Completed project rows.
Speed is not a big consideration here since it is only done once per week. I am more interested in the simplest macro that others could more easily understand (and me!).
The consololidated list will start fresh each week - there is no need to "update" it, but rather it will be overwritten by the new Regions data.
Based on your expertize and experience, which option is best, or are there others?
Thanks,
MikeG
In a sperate summary workbook, I want to keep a consolidated list of all open projects. This consolidated list will be updated weekly and I want a macro that will grab the list of open projects from each Region worksheet and put them into the one consolidated list in this Summary workbook.
My question is, what is the best way to do this. I have thought of two options.
1) Go to the first Region worksheet and copy the list in that worksheet, including all Open and Closed projects. Paste this to the consolidated list. Go to the next Region sheet, copy the list there, return to the consolidated list and append this new data to what's already been copied. Then go to the next Region worksheet, and so on. Once all data has been copied, sort by Open and Closed and delete the Closed.
2) Go to each Region worksheet, do a loop in the macro that runs through each row and let the value of the next empty cell in the consolidated list equal the value of the current cell in the Region worksheet. Use an IF statement in the loop to exclude all Completed project rows.
Speed is not a big consideration here since it is only done once per week. I am more interested in the simplest macro that others could more easily understand (and me!).
The consololidated list will start fresh each week - there is no need to "update" it, but rather it will be overwritten by the new Regions data.
Based on your expertize and experience, which option is best, or are there others?
Thanks,
MikeG