Microsoft Office Tutorials and References
In Depth Information
Potential Problems with Names
Consider a workbook that contains one sheet (Sheet1). This workbook has a workbook-level
name (BookName) for cell A1 and a worksheet-level name (Sheet1!LocalName) for cell A2. If you
make a copy of Sheet1 within the workbook, the new sheet is named Sheet1 (2). You’ll find that,
after copying the sheet, the workbook contains four names, as shown in Figure 3-14.
Figure 3-14: Copying a worksheet creates duplicated names.
This proliferation of names when copying a sheet is not only confusing, it can also result in errors
that can be difficult to identify. In this case, typing the following formula on the copied sheet
displays the contents of cell A1 in the copied sheet:
=BookName
In other words, the newly created worksheet-level name (not the original workbook-level name)
is being used.
If you copy the worksheet from a workbook containing a name that refers to a multisheet range,
you also copy this name. A #REF! error appears in its Refers To field.
When you copy a sheet to a new workbook, all the names in the original workbook that refer to
cells on the copied sheet are also copied to the new workbook. This includes both
workbooklevel and worksheet-level names.
Copying and pasting cells from one sheet to another does not copy names, even if the
copied range contains named cells.
Bottom line? You must use caution when copying sheets from a workbook that uses names. After
copying the sheet, check the names and delete those that you didn’t intend to be copied.
 
Search JabSto ::




Custom Search