Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try
Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Intersect(Target, Range("G7")) Is Nothing Then Exit Sub ActiveSheet.Name = Worksheets("List").Range("D15").Value End Sub "claudio" skrev: I want the active worksheet to be renamed if the user changes cell G7. The name comes from worksheet "List", cell D15 (this part works). The following code has no effect: Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Address = "$G$7" Then ActiveSheet.Name = Worksheets("List").Range("D15").Value End Sub What am I doing wrong? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Update date & time in a cell only when worksheet is changed | Excel Discussion (Misc queries) | |||
Macro in worksheet with changed name | Excel Discussion (Misc queries) | |||
Format changed when the details in cell changed | Excel Worksheet Functions | |||
Sound+color alert if cell changed in another worksheet | Excel Discussion (Misc queries) | |||
How to find if something has been changed on a worksheet.. | Excel Programming |