This example changes the range of the named range refers to.
Name name = names.item("FirstNames"); name.setValue("$A.$A$3:$E$12");
Related information
Value property