I am trying to modify the code below. So I can copy more than one named sheet: (Thatnks to who ever wrote it). Am I missing the obvious?
Sub SheetToO()
Dim CopyFromWbk As Workbook
Dim CopyToWbk As Workbook
Dim ShToCopy As Worksheet
Set CopyFromWbk = Workbooks("File that has the sheets.xls")
Set ShToCopy = CopyFromWbk.Worksheet("Sheet1")
Set CopyToWbk = Workbooks("File that recieves the sheets.xls")
ShToCopy.Copy After:=CopyToWbk.Sheets(CopyToWbk.Sheets.Count)
End Sub
Sub SheetToO()
Dim CopyFromWbk As Workbook
Dim CopyToWbk As Workbook
Dim ShToCopy As Worksheet
Set CopyFromWbk = Workbooks("File that has the sheets.xls")
Set ShToCopy = CopyFromWbk.Worksheet("Sheet1")
Set CopyToWbk = Workbooks("File that recieves the sheets.xls")
ShToCopy.Copy After:=CopyToWbk.Sheets(CopyToWbk.Sheets.Count)
End Sub