Hi all,
I have taken over and enhanced an Excel application. It was quite
untidy and I have been trying to clean it up to make it easier to read
for someone else doing future development.
One of the things I would like to do is clean up the convention for
named ranges. The workbook is full of names (approx. 100), most of
which are not easily identified where they come from, although I know
I can use name utilities to identify them (and many thanks to Rob
Bovey, Jan Karel Pieterse, and Charles Williams for their excellent
utilities). But I would like to make the names more easily
recognisable.
To give an example, I would like to use a convention "input_Name" for
named ranges on the input pages, or "summary_Name" for named ranges on
the summary page. (Incidentally, I'm just guessing this is best
practice?)
However, there seems to be no easy way to go through and bulk change
the names, AND make sure the references in the spreadsheet are changed
(and of course there are references in VBA). Instead of just being
able to alter the name, it seems I have to:
• add a new name
• go through the workbook and do a find/replace (checking each one to
make sure its the correct name to change - eg. the name input_location
vs. a title "Location")
• delete the old name
• go through the VBA and do a find/replace (once again checking each
occurrence)
Can anyone advise if there is such a way to more easily enable these
changes? I would have thought that it should be a simple matter to
change the names (at least in the spreadsheets), but I can't find any
such method.
Many thanks for any advice,
Chris Adams
Bookmarks