Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following code is written to test for the existence of a cell named
"anchor" on the Active Sheet but it does not work. If the named cell exists, that named range is supposed to become the active cell. Something is wrong with the second statement. Even if a cell named "anchor" exists on the active sheet, the resulting CellName is Nothing. Why? Dim CellName as Name On Error Resume Next Set CellName = ActiveSheet.Names("anchor").Name On Error GoTo 0 If Not CellName Is Nothing Then Application.Goto Reference:=CellName Else Application.Goto Reference:=Range("A1") End If Thank you. John Wirt |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Testing selection against named range | Excel Discussion (Misc queries) | |||
Named Cells (Ranges) | Excel Discussion (Misc queries) | |||
Replace a spreadsheets named cells/ranges with exact cell address. | Excel Discussion (Misc queries) | |||
Like 123, allow named ranges, and print named ranges | Excel Discussion (Misc queries) | |||
named ranges - changing ranges with month selected | Excel Programming |