Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You do not "run" that code.
It is sheet event code which runs when you change the value of E4 Make sure the code is stored in the sheet module. Right-click on sheet tab and "View Code" Copy/paste into that module. Alt + q to return to Excel. Enter a word in E4 Your sheet name will change to that word. Gord Dibben MS Excel MVP On Thu, 17 Dec 2009 08:51:55 -0800 (PST), andreashermle wrote: Dear Experts: Whenever I run this macro a dialog field pops up asking me to enter a macro name. Why is this so? Sub Worksheet_Change(ByVal Target As Excel.Range) If Len(Range("E4")) < 32 And Range("E4") < "" Then ActiveSheet.Name = Range("E4").Value End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to enter a value, tab to next cell in the row, enter ... | Excel Programming | |||
Macro to enter a value, tab to next cell in the row, enter ... | Excel Programming | |||
Macro to select cells in column enter data then press enter | New Users to Excel | |||
Macro prompt | Excel Discussion (Misc queries) | |||
Prompt User to Enter Data with a macro | Excel Programming |