Hi guys
Ok I have a macro which names files based on the names of certain sheets:
This works as expected, but how can I change the first part to reference the last sheet of the book irrespective of its number?
Cheers
Ok I have a macro which names files based on the names of certain sheets:
Code:
.SaveAs Filename:=ThisWorkbook.Path & "\" & ActiveWorkbook.Sheets.Item(10).name & "_to_" & ActiveWorkbook.Sheets.Item(1).name & ".xls"
This works as expected, but how can I change the first part to reference the last sheet of the book irrespective of its number?
Cheers