+ Reply to Thread
Results 1 to 8 of 8

Named Ranges on copied sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    09-13-2015
    Location
    France
    MS-Off Ver
    2007-2013
    Posts
    6

    Named Ranges on copied sheets

    Named ranges have a context: workbook or sheet
    There was a time when copying a sheet, Excel prompted me to change named range names and (I think) retain workbook scope.
    Now when I copy a sheet, named ranges change from workbook to sheet context
    Is there a parameter to change for Excel to prompt me with a choice?
    Many Thanks
    Mark

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,246

    Re: Named Ranges on copied sheets

    Hi Mark,

    Can you have two named ranges that are the same in a workbook and on different sheets? Is that what you want?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Named Ranges on copied sheets

    I don't recall having the option you describe in earlier versions of Excel. Can you clarify?

    This article seems to suggest that it wasn't available as far back as Excel 2000:

    https://support.microsoft.com/en-us/kb/274504

    Quote: "When a worksheet is copied, Excel copies any locally defined names so that they have the corresponding local definition in the new worksheet. Excel also converts any globally defined names (which cannot be defined twice globally) to local names in the new worksheet."

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    09-13-2015
    Location
    France
    MS-Off Ver
    2007-2013
    Posts
    6

    Re: Named Ranges on copied sheets

    Hello

    I wanted to be able to create a master sheet and then duplicate it.
    When I copied a sheet with a named range I got a prompt: 'this sheet contains a named range' what do you want it to be called on the duplicate sheet ... ?

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Named Ranges on copied sheets

    Duplicate the Master Sheet within the same workbook? Of copy it to a different workbook?

    Regards

  6. #6
    Registered User
    Join Date
    09-13-2015
    Location
    France
    MS-Off Ver
    2007-2013
    Posts
    6

    Re: Named Ranges on copied sheets

    To duplicate a sheet in a workbook, yes and to have distinct named ranges on each sheet

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,246

    Re: Named Ranges on copied sheets

    Hi Mark,

    It seems you are trying to do something that Excel can't do. You can't have two different named ranges, with the same name, in two different places in a workbook. You will get a "you must use unique names" error message if you try to do this. The only way to have the same name is to tie the named range to a specific sheet. Then they will be different places in Excel's structure.

  8. #8
    Registered User
    Join Date
    09-13-2015
    Location
    France
    MS-Off Ver
    2007-2013
    Posts
    6

    Re: Named Ranges on copied sheets

    Hello Marvin.

    No I'm ok with having different names.
    Take a sheet with a workbook scope name on it called A, duplicate the sheet.
    You get one global one local name.
    How can I get 2 global names, one called A, one called A(2)
    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to get my code to target only sheets that are named in a specific ranges?
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2014, 09:13 AM
  2. trouble linking sheets and copied relevant ranges
    By annasmcc in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-15-2013, 10:17 AM
  3. [SOLVED] VBA Assistance to print many named ranges on many sheets in a certain order
    By BertLady56 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2012, 02:57 PM
  4. Cycle Through Sheets & Sorting Named Ranges
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2012, 09:53 PM
  5. [SOLVED] Copy Sheets From Another Workbook Without Named Ranges
    By Dikolis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2009, 05:58 PM
  6. Working named ranges in multiple sheets from vba
    By brucemc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2007, 09:07 PM
  7. named ranges over multiple sheets
    By dmartindale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2007, 02:56 PM
  8. [SOLVED] named ranges and copying sheets to another workbook
    By helpwithXL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2005, 12:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1