VBA help rename sheet tab based on a cell but keeping part of originial tab name

conky4

New Member
Joined
Nov 5, 2012
Messages
24
Hi, I have a work book that has 28 sheets in it. I'll be using this as a "template" book for each pay period. Currently the sheets are named: Thursday 1 Days, Thursday 1 graves Friday 1 Days, Friday 1 graves, Saturday 1 days , Saturday 1 graves....etc to Wednesday 2 days and Wednesday 2 graves. On sheet 1 (Thursday 1 days) I have the start of the pay period date in the format mm-dd-yy in Cell A2:L2. The value in cell a2 is linked across sheets by a formula based on the first sheet ='THURSDAY-D 12-12-13'!A2:L2 +13 would be the last sheet so it consecutively dated it based on the first sheet.
I need the vba to Automatically change the sheet tab based on A2:L2 yet leave the day of the week in front of the date: IE The first tab should be Thursday-D 12-12-13, 2nd tab would be Thursday-G 12-12-13, third tab Friday-D 12-13-13, 4th tab Friday-G 12-13-13...etc so that the last tab is Wednesday-G 12-25-13.

So if I go into sheet one and change the date only in A2:L2 it will automatically rename ALL tabs in the workbook based on the consecutive date change leaving the day of week and which shift D or G in front of date.
Hope that makes sense.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

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