Refers to active cells
Another:
with selection
.name = "'" & .parent.name & "'!" & "OBM"
end with
Ps. I wouldn't use this name.
If you ever upgrade to xl2007 (with 16k columns), this will be an invalid
name--it looks too much like a column reference.
I'd use "_OBM"
Miree wrote:
I have this line of code is there a way to change the RefersTo section to
ReferTo the active cells?
ActiveWorkbook.Names.Add Name:="OBM", RefersToR1C1:="=Densities!R4C6:R139C6"
Thank you
--
Dave Peterson
|