Copy an existing worksheet and create the same worksheet worksheet for each day of the year


I have a worksheet prepared in Excel for the Cashiers that needs to be prepared on daily basis. I am interested to copy that worksheet and have it prepared for each day of the year in the same workbook. But it will be time consuming if I do it manually.

I know that with macros I should be able to do that, but I don’t have any idea how to prepare it.
It would be perfect if the sheets are named as dates, for example: 3/1/2011, 3/2/2011, 3/3/2011 or it could be March 1 2011, March 2 2011.

Please let me know if you have any questions.

Thanks and Regards,

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

try Macro Below
Sub Macro1()

Dim datefr As Date
Dim cnt As Integer

datefr = Now()
For cnt = 1 To 10
    datefr = datefr + 1
    Sheets("Template").Copy After:=Sheets(cnt)
    ActiveSheet.Name = Format(datefr, "mmm d yyyy")
End Sub

Open in new window

For Full Month Name,
ActiveSheet.Name = Format(datefr, "mmmm d yyyy")

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mmoralesprAuthor Commented:
Thanks wchh, it worked perfectly. I appreciate your help.

Take Care,

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.