You could dynamically change the value of the RefersToRange Property of the Name object.