Hi Jeff;
A good portion of you've "discovered" ‹ and gone to a great deal of trouble
to confirm ‹ is a 'feature' of Excel which has caused problems for eons
... It is entirely possible to have the same range name used multiple
times in the same workbook. IOW, range names can be either Global or
Sheet-specific. (I can't comment on the impact this may have on 'Move or
Copy' but your finding certainly sounds possible.)
This can be a beneficial feature if used intentionally, knowingly &
implemented properly. My contention, though, is that it's too easy to do so
without realizing it ‹ especially if more than one user works in the file
because there are no 'checks & balances' that apprise the user that a range
name already exists on other sheets. There is no *thorough* & explicit
documentation on on the repercussions it can cause (at least, I can't find
it if it exists). Most resources only describe how to create local range
names correctly, such as the info on Chip Pearson's site under the topic:
Global-Scope And Sheet-Scope Names;
http://www.cpearson.com/EXCEL/DefinedNames.aspx
What often happens, however, is that a workbook will have several similar
sheets, each for different Division, Location, etc. Those sheets will have
quarterly figures for various categories of values [such as Hardware,
Software, Accessories] specific to that group of records. A user will select
the range of categories & use Insert> Name> Create command on Sheet1 to
generate named ranges based on those categories. Or they may simply define
the names themselves based on labels common to both sheets. At that point
they are Global range names.
Then that user or a different user will use the Create command to create
range names on Sheet2. Absolutely no notification or prompt is generated to
indicate that those same names have already been used in the book. The
ranges on Sheet1 simply are "converted" from Global to Local on Sheet1 & the
new [duplicated] range names become Local to Sheet2.
Thanks for the detailed report. I'm certain that it will be helpful to
others & I intend to use it to help bolster my efforts to get the behavior
modified in time for the next release of Office.
Regards |:>)
Bob Jones
[MVP] Office:Mac