weekly date updates

michelebspy

New Member
Joined
Oct 10, 2002
Messages
3
I need to create a sheet which has the date displayed on the tab and to have this date automatically updated only weekly so it shows only the date for the beggining of the week. How do I go about doing this? Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Private Sub Workbook_Open()
Sheets(1).Name = Format(Now() - Weekday(Now(), 2) + 1, "dd.mm.yy")
End Sub
 
Upvote 0
This code looks really helpful. Thanks. Yet, can you plaease tell me where I would enter this info into Excel. Thank you so much!
 
Upvote 0
right click on the excel icon to the left of the 'file' menu in the 2menu bar, select view code, stick the code in the window that pops up (the ThisWorkbook module)

paddy
 
Upvote 0

Forum statistics

Threads
1,223,579
Messages
6,173,173
Members
452,505
Latest member
Alice34

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