C
celia
Currently, I am doing a timesheet. The timesheet are given every
month.
For December, a file December.xls with sheet name - December as well is
given to them. Then, the staff are
required to rename the file same as their staff number. So, for staff
no. P101 and in December, the sheet
name is December where else the file name is P101.xls. And, so on.
Then, I have to manually renamed all the sheet name same as the
staff's' numbers. This for the purpose
where the formula that need to refer to data entered by the particular
staff, I can just easily refer by the
sheet name. The data neeed to be update once a month.
Now, I have to manually open the file and copy the sheet into a new
sheet and manually rename the sheet
name from December to the sttaff numbers. It might take a lot of time
because there are 35 staff now.
I would like to write a code in new excel file where it can refer to
the particular file(P101.xls) and copy the
sheet(December) into the new file and change the sheet name(to P101) as
well. Can such code be written in
Excel. Any one has any idea?
ANY HELP OR ADVICE WOULD BE GREATLY APPRECIATED !
Thanks,
Attachment filename: cal.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=389182
month.
For December, a file December.xls with sheet name - December as well is
given to them. Then, the staff are
required to rename the file same as their staff number. So, for staff
no. P101 and in December, the sheet
name is December where else the file name is P101.xls. And, so on.
Then, I have to manually renamed all the sheet name same as the
staff's' numbers. This for the purpose
where the formula that need to refer to data entered by the particular
staff, I can just easily refer by the
sheet name. The data neeed to be update once a month.
Now, I have to manually open the file and copy the sheet into a new
sheet and manually rename the sheet
name from December to the sttaff numbers. It might take a lot of time
because there are 35 staff now.
I would like to write a code in new excel file where it can refer to
the particular file(P101.xls) and copy the
sheet(December) into the new file and change the sheet name(to P101) as
well. Can such code be written in
Excel. Any one has any idea?
ANY HELP OR ADVICE WOULD BE GREATLY APPRECIATED !
Thanks,
Attachment filename: cal.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=389182