Copy Similar Heading Sheet

majhar420

New Member
Joined
Feb 25, 2014
Messages
20
Office Version
  1. 2010
Platform
  1. Windows
How can i copy the same heading row from multiple sheet to one sheet.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Can I assume the heading row is row One

And you want to copy row(1) from Multiple sheets to one sheet.

We need to know from what sheets do we copy from and what sheet do we copy to.

We need specific details.

And are you willing to use Vba or are you wanting this done with a formula if there is one.
 
Upvote 0
Can I assume the heading row is row One

And you want to copy row(1) from Multiple sheets to one sheet.

We need to know from what sheets do we copy from and what sheet do we copy to.

We need specific details.

And are you willing to use Vba or are you wanting this done with a formula if there is one.

There are no of row. None of the sheet row no is fixed but no of column is fixed. Usually there 30 sheet. Individual sheet rows are copied in a summary sheet
 
Upvote 0
I asked for specifics. I see none in your last posting

Your original post said:
How can i copy the same heading row from multiple sheet to one sheet.
 
Upvote 0
1)There are 30 sheet in the workbook.

2) Each Sheet have similiar heading in row no (1)

3) Each Sheet have unlimited data under the same heading. There may be 30 to 100 row for data.

4) From Each sheet i want to copy in summay sheet which heading will be same and in row (1) and each sheet data will be put one after another.
 
Upvote 0
Majhar, appreciate English may not be your first language.

Make a copy of your file and then try following.
Rich (BB code):
Sub Data_to_Summary()

    Dim w           As Long
    Dim x           As Long
    Dim y           As Long
    Dim wSummary    As Worksheet: Set wSummary = Sheets("Summary")
    
    Application.ScreenUpdating = False
    
    For w = 1 To Worksheets.Count
        With Sheets(w)
            If .Name <> wSummary.Name Then
                x = .Cells(.Rows.Count, 1).End(xlUp).Row - 1
                y = .Cells(1, .Columns.Count).End(xlToLeft).Column
                wSummary.Cells(Rows.Count, 1).End(xlUp).Offset(1).Resize(x, y).Value = .Cells(2, 1).Resize(x, y).Value
                If w = Worksheets.Count Then wSummary.Cells(1, 1).Resize(, y) = .Cells(1, 1).Resize(, y).Value
            End If
        End With
    Next w
    
    Application.ScreenUpdating = True
    
   Set wSummary = Nothing

End Sub
If it doesn't work, explain with details what is wrong - pretend everyone is blind and can't see your PC screen.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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