Excel 03 - Macros

jlemond

New Member
Joined
Mar 2, 2011
Messages
1
I am new to using Macros for Excel. Work still uses Excel 2003. I have a spreadsheet that has the same outline for every day - each person's name, work category, time spent on each project, and so forth.

I need to set up a macro that will add a new sheet to the workbook and name the tab with the current day's date. For example, today's page is titled 03-02-2011. I want a macro that will add a worksheet tomorrow with the same columns/rows and headings, and will title itself 03-03-2011.

Does anyone have any suggestions?

Thanks!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try creating a sheet called Template with all your desired headings etc. then run

Code:
Sub AddSheet()
Sheets("Template").Copy after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = Format(Date, "mm-dd-yyyy")
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,508
Messages
6,179,189
Members
452,893
Latest member
denay

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