Sub Copysht()
Workbooks("[COLOR=#ff0000]Book1.xlsm[/COLOR]").Sheets("[COLOR=#0000ff]Sheet1[/COLOR]").Copy before:=Workbooks("[COLOR=#ff0000]Book2.xlsm[/COLOR]").Sheets(1)
Workbooks("[COLOR=#ff0000]Book2.xlsm[/COLOR]").Sheets(1).Name = Format(Date, "DD-MM-YYYY")
End Sub
Sub Copysht()
Workbooks("FINAL_JUMP MANIFEST_FINAL.xlsm").Sheets("DZ LOG").Copy before:=Workbooks("DO NOT DELETE_MASTER DZ LOG.xlsm").Sheets(1)
Workbooks("DO NOT DELETE_MASTER DZ LOG.xlsm").Sheets(1).Name = Format(Date, "DD-MM-YYYY")
End Sub
Yes they were both open. here is the code with the named workbooks and sheets:
Code:Sub Copysht() Workbooks("FINAL_JUMP MANIFEST_FINAL.xlsm").Sheets("DZ LOG").Copy before:=Workbooks("DO NOT DELETE_MASTER DZ LOG.xlsm").Sheets(1) Workbooks("DO NOT DELETE_MASTER DZ LOG.xlsm").Sheets(1).Name = Format(Date, "DD-MM-YYYY") End Sub