Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
you'll need an event procedure (see http://www.cpearson.com/excel/events.htm for more details): Put the following code in your worksheet module: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub On Error GoTo CleanUp application.enableevents = false With Target If .Value < "" Then Me.Name = .value End If End With CleanUp: Application.EnableEvents = True End Sub -- Regards Frank Kabel Frankfurt, Germany "kevin" schrieb im Newsbeitrag ... Hi, Do you know a way in VBA to change the name of a sheet by linking it to a cell. ie if cell A1 is "Monday" the name on the sheet tab is Monday. but will change if i put Tuesday in A1 Regards Kevin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linking worksheets in the same workbook by names not cells | Excel Discussion (Misc queries) | |||
Linking tab names to a cell in the sheet | Excel Discussion (Misc queries) | |||
Linking Cells accross Workbooks using Column Names | Excel Discussion (Misc queries) | |||
Sheet names linking to cell | Excel Discussion (Misc queries) | |||
Linking Cells to a file that changes names | Excel Discussion (Misc queries) |