Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sheets("SomeSheet").Select
Sheets("SomeSheet").Copy After:=Workbooks("Book2").Sheets(1)
Public Sub CopySheets()
Dim wbMaster As Workbook
Dim wbTmp As Workbook
'wbMaster is this workbook - (destination)
Set wbMaster = ThisWorkbook
'Copy DataSheet from File1
Workbooks.Open "C:\File1.xls"
Set wbTmp = ActiveWorkbook
wbTmp.Sheets("DataSheet").Select
wbTmp.Sheets("DataSheet").Copy After:=wbMaster.Sheets(1)
wbTmp.Close SaveChanges:=False
'Copy DataSheet from File2
Workbooks.Open "C:\File2.xls"
Set wbTmp = ActiveWorkbook
wbTmp.Sheets("SomeSheet").Select
wbTmp.Sheets("SomeSheet").Copy After:=wbMaster.Sheets(1)
wbTmp.Close SaveChanges:=False
Set wbTmp = Nothing
Set wbMaster = Nothing
End Sub