copying from multiple sheets to single sheet

mistersteve

Board Regular
Joined
Aug 18, 2014
Messages
110
Office Version
  1. 365
Hello,

can anyone help please.

I have various sheets with similar layouts.
the data is updated every month.


A
1apple
2pear
3banana
4grape
<colgroup><col width="24" style="width: 18pt; mso-width-source: userset; mso-width-alt: 877;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>
Sheet 1


A
1banana
2plum
3cherry
4orange
5apricot
<colgroup><col width="24" style="width: 18pt; mso-width-source: userset; mso-width-alt: 877;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>
Sheet 2


A
1apple
2plum
3grape
4orange
<colgroup><col width="24" style="width: 18pt; mso-width-source: userset; mso-width-alt: 877;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>
Sheet 3

I want to be able to export into one worksheet
with the sheet number they came from
and update every month.

see below.

AB
1Sheet1apple
2Sheet1pear
3Sheet1banana
4Sheet1grape
5Sheet2banana
6Sheet2plum
7Sheet2cherry
8Sheet2orange
9Sheet2apricot
10Sheet3apple
11Sheet3plum
12Sheet3grape
13Sheet3orange
<colgroup><col width="24" style="width: 18pt; mso-width-source: userset; mso-width-alt: 877;"> <col width="64" style="width: 48pt;" span="2"> <tbody> </tbody>

thank you for looking at this
 
You copied the macro into the worksheet code module for the "Summary" sheet. It should go into a regular module. In your original post, you indicated that you want the data in column A in each sheet to be copied and pasted into column B of the "Summary" sheet with the sheet name in column A of the "Summary" sheet. Could you please clarify in detail what you mean when you say:
I would now like to expand the data collection to maybe 8 ws and expand each ws to 5 columns A-E.
because this is different from what you described in your original post.
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,133
Messages
6,123,235
Members
449,092
Latest member
SCleaveland

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