A
Adriaan van der Linde
Hi Guys
I want to create a Named Range making use of a dynamic
amount of rows in a sheet.
The examples I have will only accept a predefined range.
' I can select the range I want to name
ActiveSheet.Range("AD2", ActiveSheet.Range("AD2").End
(xlDown)).Select
' I now want to take that selection and name the
range
ActiveWorkbook.Names.Add Name:="DropListLoc",
RefersToR1C1:="=NewProject!R9C5"
This will only name the "C5" cell
Thanks a stack
Adriaan
I want to create a Named Range making use of a dynamic
amount of rows in a sheet.
The examples I have will only accept a predefined range.
' I can select the range I want to name
ActiveSheet.Range("AD2", ActiveSheet.Range("AD2").End
(xlDown)).Select
' I now want to take that selection and name the
range
ActiveWorkbook.Names.Add Name:="DropListLoc",
RefersToR1C1:="=NewProject!R9C5"
This will only name the "C5" cell
Thanks a stack
Adriaan