Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
HF
 
Posts: n/a
Default How do I combine multiple whooksheets with identical columns

Hi

I have multiple records to be updated by different users, I would like to
combine them all into one worksheet without going through the pain to cut &
paste each one of them. Is there a quick way to combine them?

Pls help! Thanks.
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

HF,

Use a macro: see below, expecially the comments.

HTH,
Bernie
MS Excel MVP


Sub Consolidate()
' Will consolidate Mulitple Sheets
' from Multiple Files onto one sheet
' Never tested with files that would
' give more than one sheets as end result
' Assumes that all data starts in cell A1 and
' is contiguous, with no blanks in column A

With Application
.DisplayAlerts = False
.EnableEvents = False
.ScreenUpdating = False
End With

With Application.FileSearch
.NewSearch
'Change this to your directory
.LookIn = "C:\Excel"
.SearchSubFolders = False 'Change to true if needed
.FileType = msoFileTypeExcelWorkbooks
If .Execute() 0 Then
Set Basebook = ThisWorkbook
For i = 1 To .FoundFiles.Count
Set myBook = Workbooks.Open(.FoundFiles(i))
For Each mySheet In myBook.Worksheets
mySheet.Activate
Range("A1").CurrentRegion.Copy _
Basebook.Worksheets(1).Range("a65536").End(xlUp).O ffset(1,
0)
Next mySheet
myBook.Close
Next i
End If
End With

With Application
.DisplayAlerts = True
.EnableEvents = True
.ScreenUpdating = True
End With

Basebook.SaveAs Application.GetSaveAsFilename

End Sub

"HF" wrote in message
...
Hi

I have multiple records to be updated by different users, I would like to
combine them all into one worksheet without going through the pain to cut

&
paste each one of them. Is there a quick way to combine them?

Pls help! Thanks.



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
How can I combine multiple characters into a single character? Yukon Chin Excel Discussion (Misc queries) 4 January 22nd 05 03:29 AM
how to combine multiple files in ms excel fifi Excel Discussion (Misc queries) 1 January 12th 05 11:11 AM
XML / parent with multiple children and with multiple children Richard Excel Discussion (Misc queries) 0 January 5th 05 11:49 AM
How can I combine multiple cells in Excel? jallbright24 Excel Discussion (Misc queries) 1 November 29th 04 04:54 PM
Combine multiple Excel files into one master [email protected] Excel Discussion (Misc queries) 1 November 26th 04 11:20 PM


All times are GMT +1. The time now is 04:33 AM.

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"