Doc Science
New Member
- Joined
- Oct 29, 2014
- Messages
- 4
I need to dynamically rename the Worksheet names, from a cell value in another worksheet.
The name’s source is from: Sheet4
The worksheets to change are Sheet1, Sheet2, and Sheet3
The value of the name, in it’s cell is a date, and is formatted as m/d/yyyy (10/1/2014)
The worksheet name needs to be in this format ddd mm-dd (Sat 10-01)
Sheet1’s name will be located at =TEXT(Sheet4!A1,"ddd mm-dd")
Sheet2’s name will be located at =TEXT(Sheet4!A2,"ddd mm-dd")
Sheet3’s name will be located at =TEXT(Sheet4!A3,"ddd mm-dd")
I have a Macro that must be ran after information is pasted into Sheet4.
So I have an opportunity to embed this “Renaming” solution into that macro if necessary.
---
I know for instance, the following macro will change the tab name to the contents of A1 from an active worksheet.
Sub myTabName()
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub
The name’s source is from: Sheet4
The worksheets to change are Sheet1, Sheet2, and Sheet3
The value of the name, in it’s cell is a date, and is formatted as m/d/yyyy (10/1/2014)
The worksheet name needs to be in this format ddd mm-dd (Sat 10-01)
Sheet1’s name will be located at =TEXT(Sheet4!A1,"ddd mm-dd")
Sheet2’s name will be located at =TEXT(Sheet4!A2,"ddd mm-dd")
Sheet3’s name will be located at =TEXT(Sheet4!A3,"ddd mm-dd")
I have a Macro that must be ran after information is pasted into Sheet4.
So I have an opportunity to embed this “Renaming” solution into that macro if necessary.
---
I know for instance, the following macro will change the tab name to the contents of A1 from an active worksheet.
Sub myTabName()
ActiveSheet.Name = ActiveSheet.Range("A1")
End Sub