Copy Similar Heading Sheet

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,762
Office Version
2013
Platform
Windows
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.
 

majhar420

New Member
Joined
Feb 25, 2014
Messages
16
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
 

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,762
Office Version
2013
Platform
Windows
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.
 

majhar420

New Member
Joined
Feb 25, 2014
Messages
16
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.
 

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,674
Office Version
365
Platform
Windows
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:

Watch MrExcel Video

Forum statistics

Threads
1,102,733
Messages
5,488,551
Members
407,646
Latest member
utl1095

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top