Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Simple Consolidation of Worksheets

I scanned a huge database into Excel.
It has around 300 seperate sheets.
All I need to do is combine all the sheets into one sheet.
Copy & paste would take DAYS!
Any help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 342
Default Simple Consolidation of Worksheets

I had to make a lot of assumptions about your situation:
1 €“ The data is in the same format on all worksheets.
2 €“ You want all of the content of each worksheet combined on one new
worksheet.
3 €“ One worksheet is capable of including all data.

So I gave it a shot and came up with this macro to do the work for you:

Start copy after this line---

Sub ConsolidateIt()

Dim wsEach As Worksheet
Dim wsComb As Worksheet

Set wsComb = ThisWorkbook.Worksheets("Combined")

For Each wsEach In ThisWorkbook.Worksheets
If Not wsEach.Name = "Combined" Then
wsEach.UsedRange.Copy wsComb.Range("A" & wsComb. _
UsedRange.Row + wsComb.UsedRange.Rows.Count)
End If
Next wsEach

End Sub

End copy before this line ----

To make it work you need to add a new worksheet to your workbook, double
click on the new worksheet tab and name it €śCombined€ť without the quotes.
Next, right click on the new worksheet tab and select €śEdit Code€ť then past
the language above in the VB editor window. Close the VB editor window and
run the macro €śConsolidateIt€ť. That should do it, but there are a few
unknowns here so be sure you work with a backup of your file.

Let me know if it works.
Tom

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Simple Consolidation of Worksheets

Hi,

You may Google for RDB Merge addin. This is a good addin for consolidating
data from different worksheets/workbooks

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"nonapp2" wrote in message
...
I scanned a huge database into Excel.
It has around 300 seperate sheets.
All I need to do is combine all the sheets into one sheet.
Copy & paste would take DAYS!
Any help?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Simple List...Multiple Columns and Multiple Worksheets Jane Doe[_3_] Excel Worksheet Functions 6 July 14th 08 08:12 PM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
consolidation of data from other worksheets (ras) ras Excel Discussion (Misc queries) 0 April 20th 07 03:48 PM
Simple Way to Count the Number of Duplicate Dates on Multiple Worksheets Dan Excel Discussion (Misc queries) 2 February 23rd 06 11:46 PM


All times are GMT +1. The time now is 09:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"