VBA Code to collate data from a nr of s/s and insert in one s/s

NPike

New Member
Joined
Jan 22, 2009
Messages
17
Each month I get circa 30 workbooks with cost data in, split by tabs in to cost heads, such as; Staff, Materials, Plant, Subcontract ...etc.

I need to collate all the cost data for each cost head into one workbook (that is a separate workbook for each cost head).

At the moment this is taking me ages to collate the information and I was wondering if anyone knew of a Macro which will be able to do this?

More information;

- The circa 30 spreadsheets will be in one Folder on my computer with nothing else in that folder.

- There will be a number of tabs relating to each cost head, e.g. Staff 01, Staff 02, Staff 03 ...etc.

- On each tab, the information I want to collate always starts in cell C3, but will differ in the number of columns from that point, and the number of rows from that point.

Please can anybody help? If you require more information please let me know.

Many thanks in advance if anyone can help!!!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

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