C
Carl Witthoft
Here's what happened, using Office2004.
I set up some data, formulas and names in one sheet. (By 'names' I mean
the Insert/Name/Define thing). Call this sheet "First" , so for example
the name Range might be defined as First!A1:A10 and so on.
Then I wanted to try some modifications to my setup, so I made a copy of
this worksheet and named the copy something like "Second." While
Second was the front page, I opend the Insert/Name/Define dialog box,
and was somewhat surprised to find my names referring to stuff like
Range --> Second!A1:A10 .
Then I clicked on Range and defined a new variable, Range2, that pointed
to Second!A1:A10. At that point I tried deleting Range but could not.
I then closed the dialog box, brought First sheet to the front, and
reopened the naming dialog box. Now, the same Range variable pointed
to First!A1:A10 (everything I describe happened to all my 'names').
I believe, but can't recall for sure, that I clicked on each name that
pointed to First and clicked "add," even though they were already there.
Then I closed the dialog, brought Second sheet to the front, and
reopened the naming dialog box. My memory goes hazy here, but I
believe I still saw things like Range being identified as belonging to
Second. But, now I could delete Range, at which point it was still in
the list but not marked as belonging to Second.
So: is this by design or by accident? In particular, I'd always
thought that Names were a workbook-wide 'global' kind of variable. So
how does one intentionally assign a name to a single worksheet, and what
exactly did I cause to happen when I created a copy of the First
worksheet?
thanks for any ideas or help.
Carl
I set up some data, formulas and names in one sheet. (By 'names' I mean
the Insert/Name/Define thing). Call this sheet "First" , so for example
the name Range might be defined as First!A1:A10 and so on.
Then I wanted to try some modifications to my setup, so I made a copy of
this worksheet and named the copy something like "Second." While
Second was the front page, I opend the Insert/Name/Define dialog box,
and was somewhat surprised to find my names referring to stuff like
Range --> Second!A1:A10 .
Then I clicked on Range and defined a new variable, Range2, that pointed
to Second!A1:A10. At that point I tried deleting Range but could not.
I then closed the dialog box, brought First sheet to the front, and
reopened the naming dialog box. Now, the same Range variable pointed
to First!A1:A10 (everything I describe happened to all my 'names').
I believe, but can't recall for sure, that I clicked on each name that
pointed to First and clicked "add," even though they were already there.
Then I closed the dialog, brought Second sheet to the front, and
reopened the naming dialog box. My memory goes hazy here, but I
believe I still saw things like Range being identified as belonging to
Second. But, now I could delete Range, at which point it was still in
the list but not marked as belonging to Second.
So: is this by design or by accident? In particular, I'd always
thought that Names were a workbook-wide 'global' kind of variable. So
how does one intentionally assign a name to a single worksheet, and what
exactly did I cause to happen when I created a copy of the First
worksheet?
thanks for any ideas or help.
Carl