Code to copy data from many worksheets into one summary tab while adding additional cells

Status
Not open for further replies.

jamesbrown008

New Member
Joined
Apr 22, 2011
Messages
27
Ok so i am way out of my depth here
I am trying to write a macro copy data from several worksheets into one.
The macro should only cycle through sheets with a "-" in the name
The data is very clean with no headers, totals or blank rows to worry about
What I need is for all rows from all sheets to be copied to one master sheet.
The above part is fairly standard stuff and I could likely work this bit out on my own.
However, here is the catch:
There are two types of sheet:
Agent Conversions and Online Conversions
The naming conventions are as follows
Agent Conversions d-m-yy (technically the date format can be either d-m-yy or dd-mm-yy)
Online Conversions d-m-yy (technically the date format can be either d-m-yy or dd-mm-yy)

What I need is for every row I copy from each worksheet to have the conversion type and the date broken out into two seperate fields on each row.
e.g. if I had a sheet called "Agent Conversions 4-7-11" and the first row had the following values:
Column A: "James" Column B: "47"
The macro would need to create a new row on the Summary tab with the following
Column A: "Agent Conversions" Column B: "4-7-11" (doesn't have to be date format - can be text) Column C: "James" Column D: "47"
It would then of course continue through all rows and all sheets.
If this is something any of you can do I will be forever in your debt.
Thanks
James
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Status
Not open for further replies.

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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