Gregork,
I was dealing with exactly the same question as you do. I made a
workbook for my company in which people (in sheet1 “hours”) can write
down their working hours.
At the end of the week the sheet is printed and the sum of the hours
is copied to sheet 2 (“totals”).
I want to save the workbook, but only the sheet “hours”, every week
with a unique name, while keeping last week as it is and save the
original book for future use.
This is what I did.
First I made a counter at sheet 1 representing the weekno. (Actually
there is also info about the year and the user)
Say A=year, B=week, C= username, N=name of original sheet. (all
declared as string).
Then I followed the next steps:
1. save original workbook (N)
2. delete sheet “totals”
3. save modified book with name C+A+B.xls
4. open original workbook (N)
These steps can be put in a macro.
5. Close workbook CAB.xls manually. (I do not know yet how to put this
in the macro too)
Now you can continue working in workbook 1.
This is, of course, a very simplified way in which I wrote this down
and there is a lot more to tell about it.
Basically however this is the procedure.
Greetings Harry