With ActiveCell
ActiveWorkbook.Names.Add Name:="CellBelow", _
RefersTo:="=" & .Offset(-.Row + 2, -.Column + 1).Address(False,
False, , True)
End With
--
HTH
RP
(remove nothere from the email address if mailing direct)
"John Broderick" <jbroderick@rfintegration.com> wrote in message
news:O9ZxYhzBGHA.3292@TK2MSFTNGP09.phx.gbl...
> For example I want to create a name (CellBelow) that always refers to the
> cell below the active cell.
> I know how to do this with Insert Name / Define, but how does one do it
> within VBA?
>
> Thanks,
> JB
>
>
>
>
>
Bookmarks