Copy Mutiple worksheets to single Workbook

Joined
Apr 14, 2006
Messages
2
Reaction score
0
Hi-ho all.

I have several Excel 2003 (SP3) workbooks that contain multiple worksheets and I would like to move the data to ONE single workbook. The data is held within a fixed range in all the worksheets. Its easy to cut and paste special with only the values, but its tedious and with over 6000 records its tiring!

So am looking for some guidance so that I can either create a macro that will find open the individual workbooks and create a single worksheet or some other approach that saves me some time.

Looking forward to your replies.
 
Joined
Apr 14, 2006
Messages
2
Reaction score
0
Found the solution!!
Sub consolidate()
On Error Resume Next
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Sheets("ConsolidatedData").Delete
Sheets.Add before:=Sheets(1)
Sheets(1).Name = "ConsolidatedData"
Dim ii As Long
For ii = 3 To 4
Sheets(ii).Range("A1:AA1000").Copy 'change the range to copy
With Sheets(1).Cells(Rows.Count, 1).End(xlUp).Offset(1)
.PasteSpecial xlValues
End With
Next ii
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Range("a1").Activate
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top