Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I try to name a range as follows:
dim rng as Range, v as String set rng = LookupSomeRange( v ) 'where LookupSomeRange is a function, returns range 'now name it, bur has run-time error '1004', the name is not valid ActiveSheet.Names.add Name:= v, RefersToR1C1="""=" & ActiveSheet.Name & "!" & v & """", Visible:=True ' i am sure the value of v is unique, there is no name conflict What went wrong? -PD |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
self-sizing adv.filter criteria range | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Wrap Text Across Columns & Rows | Excel Discussion (Misc queries) | |||
Duplicate Range Names by worksheet | Excel Discussion (Misc queries) | |||
Help with using range names in sum function | Excel Worksheet Functions |