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

Posted on 2011-03-13
Last Modified: 2012-05-11

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,

Question by:mmoralespr
  • 2

Expert Comment

ID: 35124427
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


Accepted Solution

wchh earned 500 total points
ID: 35124438
For Full Month Name,
ActiveSheet.Name = Format(datefr, "mmmm d yyyy")

Author Closing Comment

ID: 35124581
Thanks wchh, it worked perfectly. I appreciate your help.

Take Care,


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now