Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to create a defined name's Refersto range of
"Sheet1!$A$1:$A$5" using the variable below. r = 5 Workbooks("Book1.xlsb").Names.Add Name:="Test", RefersTo:=Sheets("Sheet1").Range("A1").Resize(r - 1, 0) This doesn't work and gives a Run-time error '9': Subscript out of range error. What is the code to get the Refersto range properly setup ? kittronald |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Modifying a Defined Name's Contents | Excel Programming | |||
How to Print Name's list and Names Range? | Excel Worksheet Functions | |||
Deleting Range name's listed in the range address box. | Excel Discussion (Misc queries) | |||
Wierd named range RefersTo value | Excel Programming | |||
Wierd named range RefersTo value | Excel Programming |