Go here :

 

http://excelpoweruser.wordpress.com/2012/06/07/compile-worksheets/

 

if you have data in same format on multiple worksheets and you want to
compile on a single sheets you can Use this Macro,

 

Sub ConsolidateAllSheets()

   

    Dim wksConsolidate      As Worksheet

    Dim wksSheet            As Worksheet

    Dim lngLastRow          As Long

    Set wksConsolidate = ThisWorkbook.Worksheets.Add

    lngLastRow = 1

    Application.DisplayAlerts = False

    On Error Resume Next

        ThisWorkbook.Worksheets("Consolidated").Delete

    On Error GoTo 0

   

    wksConsolidate.Name = "Consolidated"

    If Not ThisWorkbook.ProtectStructure Then

        With wksConsolidate

            For Each wksSheet In ThisWorkbook.Worksheets

                If Not wksSheet Is wksConsolidate Then

                    wksSheet.UsedRange.Copy .Range("A" & lngLastRow)

                    lngLastRow = .UsedRange.Rows.Count + 1

                End If

            Next wksSheet

        End With

    End If

    MsgBox "Done"

   

End Sub

Description:
http://excelpoweruser.wordpress.com/2012/06/07/compile-worksheets/

 

 

 

Regards

Rajan verma

+91 7838100659 [IM-Gtalk]

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of dguillett1
Sent: 17 August 2012 8:41
To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ combining data in one worksheet from other
worksheets

 

Put your summary sheet FIRST (TO THE FAR LEFT)>USE this in a macro enabled
file

 

Option Explicit

Sub CombineSheetsSAS()

Dim i As Long

Application.ScreenUpdating = False

Columns(2).Resize(, Columns.Count - 1).Delete

For i = 2 To Sheets.Count

  Sheets(i).Range("b2:b30").Copy Sheets(1).Cells(2, Cells(2,
Columns.Count).End(xlToLeft).Column + 1)

Next

Application.ScreenUpdating = True

End Sub

 

Don Guillett
Microsoft Excel Developer
SalesAid Software
dguille...@gmail.com

 

From: SAGAR KASANGOTTUWAR <mailto:sagarkasangottu...@gmail.com>  

Sent: Friday, August 17, 2012 9:11 AM

To: excel-macros@googlegroups.com 

Subject: $$Excel-Macros$$ combining data in one worksheet from other
worksheets

 

Dear Friends, 

 

I want combine the data from other worksheets to one specific worksheet so
kindly give me the fastest way to do same task.

 

Note. I HAVE NEAR ABOUT 200 worksheets which I WANT to combine.

 

 

THANKS IN ADVANCE,

 

Regards,

 

CA KSAGAR

-- 
Join official facebook page of this forum @
https://www.facebook.com/discussexcel
 
FORUM RULES (1120+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security
measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
6) Jobs posting is not allowed.
 
7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups
"MS EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to
excel-macros+unsubscr...@googlegroups.com.
 
 

-- 
Join official facebook page of this forum @
https://www.facebook.com/discussexcel
 
FORUM RULES (1120+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security
measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
6) Jobs posting is not allowed.
 
7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups
"MS EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to
excel-macros+unsubscr...@googlegroups.com.
 
 

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


<<image001.png>>

Reply via email to