Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default cell changed - worksheet name changes

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update date & time in a cell only when worksheet is changed RJD Excel Discussion (Misc queries) 6 December 23rd 09 03:57 PM
Macro in worksheet with changed name Claireybelle90 Excel Discussion (Misc queries) 1 June 16th 09 05:00 PM
Format changed when the details in cell changed angel Excel Worksheet Functions 9 July 15th 08 12:36 AM
Sound+color alert if cell changed in another worksheet florinel Excel Discussion (Misc queries) 0 May 25th 06 04:52 PM
How to find if something has been changed on a worksheet.. Prasad Vanka Excel Programming 1 June 8th 04 04:50 PM


All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"