I've inherited some VBA code that makes use of named ranges in a shorthand way where "xTodaysPrice" is a named range of one cell:
The name needs to be changed now to something else, e.g. "xAvgPrice".
Besides using search/replace across the whole code is there a better way of setting this up so that in the future there is only one location that needs to change the name of the named range and the code automatically picks this up?
Thanks,
Dan
Code:
If iCol = [xTodaysPrice].Column Then...
Besides using search/replace across the whole code is there a better way of setting this up so that in the future there is only one location that needs to change the name of the named range and the code automatically picks this up?
Thanks,
Dan