Name field value

  • Thread starter Thread starter efi
  • Start date Start date
If it is already defined

assume the name is MyNum

ThisWorkbook.Names("MyNum").RefersTo = "=10"

if by value you mean you want it to be associated with a range of cells

Worksheets("Sheet4").Range("B9:C23").Name = "MyRange"
msgbox Range("MyRange").Address(external:=True)
 
Back
Top