Multiple worksheets with same form layout - into one list of rows worksheet.

natheplas

Board Regular
Joined
Aug 28, 2016
Messages
97
Hi All,

Is there anyway with excel to compile loads of data from multiple work sheets into one worksheet?

I have loads of worksheets that have the exact same layout on each one.

I then want a way to pull each work sheet to a new row on one worksheet.

Can anyone help me with this please?

Nathan
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi All,

I've figured out to use some different VBA codes to compile all the data together.

However, it pastes it into on worksheet as a mess.

Is there anyway to map what cells go in which column and make sure each worksheet is a new row?

I really hope there's a way to do this!

Natheplas
 
Upvote 0
How about something like this
Code:
Sub AmalgamateSheets()

    Dim Ws As Worksheet
    
    For Each Ws In Worksheets
        If Not Ws.Name = "[COLOR=#0000ff]Data[/COLOR]" Then
            Ws.UsedRange.Offset(1).Copy Sheets("[COLOR=#0000ff]Data[/COLOR]").Range("A" & Rows.Count).End(xlUp).Offset(1)
        End If
    Next Ws
    
End Sub
This will copy info to a sheet called Data, change the names in blue to suit
 
Upvote 0
Hi Fluff,

Thank you for coming back to me. I'm fairly new to VBA on excel.

How does this code work. I currently have a load of workbooks in folders. 2017, then month, then each month of workbooks.

I ideally want the VBA to merge all of 2017 workbooks together, but somehow organise where the data goes on to the 'master' spreadsheet.

Name, Company, etc

column a, column b etc

Any ideas? Might have to hold my hand a little bit with this one - Not sure how to put together something like that.
 
Upvote 0
Originally you said
Is there anyway with excel to compile loads of data from multiple work sheets into one worksheet?
Now you are saying
I ideally want the VBA to merge all of 2017 workbooks together
Additionally you originally said
I have loads of worksheets that have the exact same layout on each one.
but you now say
but somehow organise where the data goes on to the 'master' spreadsheet
which makes me think that your original statement was wrong.

Could you please let us know exactly what you want. along with samples of what your data looks like & how you need it to look.
Assuming that you want want to copy from multiple workbooks, we'll need the following info
1) what are the folder names to look in
2) do you want to copy from every workbook in those folders
3) if there is more than 1 sheet in each workbook, what sheets do you need copying
4) does the master sheet exist?
5) does everything get copied to 1 sheet within the master
 
Upvote 0
Hi Fluff,

I put together something that works now, it's not great, but it does the job. Sorry for any confusion and thanks for coming back to me.

Natheplas
 
Upvote 0
Glad you got it sorted & thanks for letting us know
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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