Creating Range Names

  • Thread starter Thread starter Guest
  • Start date Start date
TroyH,

Sure can!

Sub test()
ActiveWorkbook.Names.Add _
Name:=Range("A2").Value, _
RefersTo:="=Sheet1!$A$1:$D$3"
End Sub


Rob
 
Thanks for the reply

This is great news, what would I do if I want to use an Activecell? Can I use a stored value?
 
Back
Top