#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default AutoUpdate

You can do it with a worksheet change function. Put the code into the VBA
worksheet you want it to run on (not a module VBA module). A worksheet
change only works on one worksheet. You must copy it to each worksheet where
you want it to run.

Sub worksheet_change(ByVal target As Range)
If target.Address = "$M$2" Then
ActiveSheet.Name = target.Value
End If
End Sub


"Danny" wrote:

Hi There,

Who can help me with the following,

I have below formula to let the Sheet name be updated after filling in a
Cell (reference), this is working when i run this macro manually.

Sub Rename_Sheet()

ActiveSheet.Name = ActiveSheet.Range("M2")
End Sub

I'm now looking for a way to have the name of the sheet be updated
automatically the moment i fill in the Cell?

Is there anyone who can help me with this?

Thanks
Danny

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
Excel- how to create external link with autoupdate P Bajaj Excel Discussion (Misc queries) 1 November 8th 06 12:41 PM
Can I add an autoupdate file name insert to the document body? Jeni Excel Discussion (Misc queries) 1 October 21st 06 05:08 AM
Autofilter Autoupdate Lori Burton Excel Discussion (Misc queries) 0 January 12th 06 05:00 PM
Help with autoupdate.... vcobra57 Excel Worksheet Functions 0 November 11th 04 04:45 PM
Help with autoupdate.... vcobra57 Excel Worksheet Functions 1 November 11th 04 04:36 PM


All times are GMT +1. The time now is 08:15 PM.

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

About Us

"It's about Microsoft Excel"