Ever moved all the worksheets from a workbook to another. I did it previously, so thought to share the code with you all.
Public Sub CopyWorksheets(sourceBook As Workbook, destBook As Workbook)
Dim shtCounter As Integer
Dim wkSheet As Worksheet
'remove all the sheets from Destination workbook except one.
'the last worksheet will be deleted once we have copied the worksheets
For shtCounter = destBook.Worksheets.Count To 2 Step -1
Set wkSheet = destBook.Worksheets(shtCounter)
Application.DisplayAlerts = False
wkSheet.Delete
Application.DisplayAlerts = True
Next shtCounter
'rename the sheet1 so that we can assure there is no duplicity
Set wkSheet = Worksheets(1)
wkSheet.Name = "123111xSheet111789" 'giving some arbit name so that we can
' assure that the sheets we are trying
'copy doesn't have the same name as the worksheet's name.
'copy sheets to destWKB
sourceBook.Worksheets.Copy after:=destBook.Worksheets(1)
Application.DisplayAlerts = False
wkSheet.Delete
Application.DisplayAlerts = True
End Sub
HTH,
Vikas Bhandari