View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Jeff Johnson[_2_] Jeff Johnson[_2_] is offline
external usenet poster
 
Posts: 32
Default Variable length named ranges

"Jim Thomlinson" wrote in message
...

I assume that nRows is an integer or long variable...

ThisWorkbook.Names.Add Name:="dAge", RefersTo:="=RawData!$H$2:$H$" &
nRows,
Visible:=True


I hope the poster understands that the named range is not "connected" to
nRows, i.e., if the value of nRows changes later it won't change the range
that was just created. Just thought I'd mention it....