Change Tab name based on formula in cell D3 on each sheet

excelmeatman

New Member
Joined
Jan 27, 2016
Messages
1
In every D3 cell I have a date, formatted such as "01-Jan-16." What I want is for the name of each tab to automatically be renamed by pulling this data. The dates in cells D3 are figured by pulling the date in the previous sheet and adding 7 to get the new date (I create a new sheet each week).

I would like some sort of code which always makes the tab name reflect whatever date I have in cell D3 on each page. Any ideas? Tried watching some vids and trying different codes but nothing is quite working. I'm a noob at this but it's very interesting/helpful so any help is most appreciated! Thanks.
 

Some videos you may like

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

yky

Well-known Member
Joined
Jun 7, 2011
Messages
1,701
Office Version
2010
Platform
Windows
Code:
Sub rename_tab()

Dim ws As Worksheet


For Each ws In ThisWorkbook.Sheets


ws.Name = ws.Range("D3").Value


Next


End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,102,556
Messages
5,487,535
Members
407,605
Latest member
PACULA

This Week's Hot Topics

Top