Copy Worksheets Into Master Workbook
Sub copyall()
With Workbooks("Master.xls")
sheetcount = .Worksheets.Count
For Each wks In ThisWorkbook.Worksheets
.Worksheets.Add after:=Sheets(sheetcount)
wks.Cells.Copy
ActiveSheet.Select
ActiveSheet.Paste
sheetcount = sheetcount + 1
Next wks
End With
End Sub
"Fred" wrote:
I would like to create a macro that will all copy all of the worksheets in
the current workbook into the master workbook.
Please help me create this macro.
Thank you very much.
|