Variable length named ranges
In addition to other replies do you really mean to add the name to
"ThisWorkbook". From what you followed up with in your other recent I
suspect you mean ActiveWorkbook or some other named wb.
Regards,
Peter T
"adimar" wrote in message
...
I need a way to specify a variable for the last row in a named range.
A static definition looks like this:
ThisWorkbook.Names.Add Name:="dAge", RefersTo:="=RawData!$H$2:$H$100",
Visible:=True
I would like to replace "100" with "nRows" and need help with the syntax.
Thank you.
|