Monthly Rollup of data

singlgl1

Board Regular
Joined
Jan 13, 2007
Messages
127
I'm gonna try to word this so that it makes sense so forgive me if I fail to do so.
I have a daily file that contains a sheet named "events" that captures gas volumes vented throughout the day.The files are named 6-1-11, 6-2-11,etc throughout the month.Some days may have no events and some may have one or more.There are rows on each daily sheet for up to 21 events during the day(cells A5:T25 ). Now what I would like to do is rollup each event onto one "monthly" sheet in a separate workbook at the end of the month.I'd like to tell it to go and look at each of these files for the month (6-1-11,6-2-11, and so on and look at sheet "events" and pull in only the info on rows A5:T25 where the corresponding cell in column A is populated.I'm assuming this wouyld be some kind of lookup function but need some guidance from the pros out there.
I appreciate any feedback and will provide files and more info if necessary.
Thanks Again !!
 
To get make the code always choose to not update links (and hopefully get rid of the links question) , change this line:
Workbooks.Open Filename:=strFileName
to this:
Workbooks.Open Filename:=strFileName, UpdateLinks:=False

For XL2007 it should be:
Workbooks.Open Filename:=strFileName, UpdateLinks:=2

One way to debug would be to put a Stop statement after each loop. The code will stop there. Then pressing F8 will execute one line at a time or F5 will continue execution.

Did the summary message pop up at the end? If you got into a routine hitting enter to answer the links question, you may have acknowleged it when it popped up without noticing what it said.
 
Last edited:
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,224,602
Messages
6,179,848
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top