Duplicate tab with new date

lmoore123

New Member
Joined
Feb 16, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have an excel sheet used to track employees who work OT daily. I want to create a button that will open a duplicate of the original (blank) in a new tab with the current date. Can that be done?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
open a duplicate of the original (blank)
I assume that you don't want a totally blank sheet but to delete just the employee data? Is this correct? Do you want the new sheet to be named using the current date? It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your sheet. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0
Yes, I want the template from the primary tab to copy into a new tab labeled with the current date. The employee data would be saved on the new tabs for each date, creating a record the supervisors could look back on. The original template would remain unchanged. Dropbox link below.

OT
 
Upvote 0
Try this macro. Change the name of the sheet to be copied (in red) to suit your needs.
Rich (BB code):
Sub CopyTemplate()
    Application.ScreenUpdating = False
    Sheets("Primary").Copy after:=Sheets(Sheets.Count)
    ActiveSheet.Name = Replace(Date, "/", ".")
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top