summarizing all different sheets into one sheet

macyrasia

New Member
Joined
Jul 26, 2011
Messages
11
;)hello.. i want to ask if anyone can help me about this... i have one worksheet with atleast 5 different sheets with 7 columns...

i want on sheet 1 will appear all the data i encoded in sheet 2 and up..but it must be continous,,,

example;

sheet2

row number name address
1 juan canada
2

sheet 3

row number name address
1 diane usa
2

then on sheet 1
row number name address
1 juan canada
2 diane usa
please help
thank you
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
;)hello.. i want to ask if anyone can help me about this... i have one worksheet with atleast 5 different sheets with 7 columns...

i want on sheet 1 will appear all the data i encoded in sheet 2 and up..but it must be continous,,,

example;

sheet2

row number name address
1 juan canada
2

sheet 3

row number name address
1 diane usa
2

then on sheet 1
row number name address
1 juan canada
2 diane usa
please help
thank you

Maybe:

Code:
Sub macyrasia()

Dim i As Long

For i = 2 To ThisWorkbook.Sheets.Count

Sheets(i).Range("A1").EntireRow.Copy Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp)(2)

Next i

End Sub
 
Upvote 0
what i did is.. on my worksheet i have 3 sheets. the sheet 1 is where the summary of sheet 2 and other sheets are encoded. then.. i paste your code on the view code and tried to run it...but nothing happens
 
Upvote 0
macyrasia,


Sample worksheets:


Excel Workbook
ABCDEFG
1nameaddressCDEFG
2
3
4
5
Sheet1





Excel Workbook
ABCDEFG
1nameaddressCDEFG
2juancanada22222
3
Sheet2





Excel Workbook
ABCDEFG
1nameaddressCDEFG
2dianeusa33333
3macyrasia?33333
4
Sheet3





After the macro in worksheet Sheet1:


Excel Workbook
ABCDEFG
1nameaddressCDEFG
2juancanada22222
3dianeusa33333
4macyrasia?33333
5
Sheet1





Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).


1. Copy the below code, by highlighting the code and pressing the keys CTRL + C
2. Open your workbook
3. Press the keys ALT + F11 to open the Visual Basic Editor
4. Press the keys ALT + I to activate the Insert menu
5. Press M to insert a Standard Module
6. Where the cursor is flashing, paste the code by pressing the keys CTRL + V
7. Press the keys ALT + Q to exit the Editor, and return to Excel
8. To run the macro from Excel, open the workbook, and press ALT + F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.


Code:
Option Explicit
Sub macyrasia()
' hiker95, 07/27/2011
' http://www.mrexcel.com/forum/showthread.php?t=566872
Dim ws As Worksheet, LR As Long, NR As Long
Application.ScreenUpdating = False
For Each ws In ThisWorkbook.Worksheets
  If ws.Name <> "Sheet1" Then
    LR = ws.Cells(Rows.Count, 1).End(xlUp).Row
    If LR > 1 Then
      NR = Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(1).Row
      ws.Range("A2:G" & LR).Copy Worksheets("Sheet1").Range("A" & NR)
    End If
  End If
Next ws
Sheets("Sheet1").Activate
Application.ScreenUpdating = True
End Sub


Then run the macyrasia macro.
 
Upvote 0
macyrasia,

Thanks for the feedback.

You are very welcome.

Glad I could help.

Come back anytime.
 
Upvote 0
can you tell me also how will i do it automatic...example when i erase on sheet 2 it will be also remove on the summary sheet.. thanks
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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