how to tell if a named range exists
hi all,
in vba - how do you tell if a named range exists?
and whats the easiest way to create a named range
now i am doing:
Dim l As Range
ActiveWorkbook.Names("LastUsed").Delete
l = .Cells(Cells.Rows.Count, "C").End(xlUp)(2)
ActiveWorkbook.Names.Add name:="LastUsed", _
RefersToR1C1:="='Customer Orders'!R" & l.Row & "C" & l.Column
is there a better way to do this?
tia
J
|