![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: May 2002
Location: Minnesota, USA
Posts: 70
|
I wish to Link a Worksheet Tab so that the default name (Sheet1) would change automatically to match a value in a cell. The other scenario would be to change the value of the Worksheet Tab (Sheet1) and a cell from the sheet would change automatically to match the value of the Tab.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
Right click on the WorkSheet Tab and choose View Code. Paste in this code
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$A$4" Then ActiveSheet.Name = Target.Value End Sub Change $A$4 to the cell of interest |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: May 2002
Location: Minnesota, USA
Posts: 70
|
Thank you Lenze.. Your'e the man.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|