Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If you're using a formula in P2, you should use the worksheet_Calculate event.
Option Explicit Private Sub Worksheet_Calculate() On Error Resume Next Me.Name = Me.Range("P2").Value If Err.Number < 0 Then Beep Err.Clear End If On Error GoTo 0 End Sub Native wrote: Hello, I have the following code in a worksheet: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address(external:=True) _ = Range("p2").Address(external:=True) Then On Error Resume Next Me.Name = Target.Value On Error GoTo 0 End If End Sub My question is, how do I get the worksheet name to update automatically? For example, the cell P2 has a lookup based on an input in cell B3. When I change B3, P2 looks up the text and changes from blue to say green. However, when I change B3, the worksheet name does not automatically update. The only way I can get the worksheet name to update is to open the cell P2 and hit enter. Any suggestions? Thanks -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy worksheet multiple times base on user's input | Excel Worksheet Functions | |||
How do I automatically update my accountability worksheet from my | Excel Worksheet Functions | |||
Why don't fields update automatically when new numbers are input?. | Excel Discussion (Misc queries) | |||
Automatically Populating Worksheet from Collected Input for Pricelist | Excel Worksheet Functions | |||
Automatically Populating Worksheet from Collected Input for Pricelist | Excel Worksheet Functions |