+ Reply to Thread
Results 1 to 6 of 6

how to modify,save as new Named Range?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-01-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    how to modify,save as new Named Range?

    I wish to modify an existing Named Range, say name2011, and save it as a new range, say name2012, while preserving name2011 and all references to it. I was able to do this in an earlier version of Excel but can't figure out how to do it now with Excel 2010/W7. In Excel 2002 there was an Add button in the Define window, but I can't find the equivalent in 2010. Any help would be appreciated.

    Lou

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: how to modify,save as new Named Range?

    If I understand your question correctly, you want to save an extra set of the old named range range?

    Try
      
     ActiveSheet.Names.Add Name:="name2012", RefersTo:=Range("name2011")

  3. #3
    Registered User
    Join Date
    06-01-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: how to modify,save as new Named Range?

    Quote Originally Posted by JieJenn View Post
    If I understand your question correctly, you want to save an extra set of the old named range range?

    Try
      
     ActiveSheet.Names.Add Name:="name2012", RefersTo:=Range("name2011")
    Thank you for your reply, but maybe I wasn't clear. I have dozens of name2011s, each with a different name and a different formula. I wish to generate a new set of name2012s with different formulas while still preserving the original name2011s with their formulas. For example, name2011 might be $A$1:$A$365. I want to generate name2012 as $A$366:$A$731 and keep name2011 intact. The actual names and formulas are somewhat more complicated. Being able to edit each name2011 and "save as" name2012 is reasonably efficient and less error prone than generating the new names from scratch. On my Excel 2002/XP system there is an Add button in Define Name popup window which enables me to do this. It would be a disappointment if there is not an equivalent functionality for Excel 2010.
    Lou

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: how to modify,save as new Named Range?

    In 2010, on the Formulas tab you can manually add names using the New button in the Name Manager dialog window. I wasn't aware of the ability to adjust a named range and save as another name in 2002, but if you say it's there so be it.

    JJ's macro should help automate the process a bit.

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: how to modify,save as new Named Range?

    The named range reflects as what the name means, "named a range" not duplicate a range of formula........

  6. #6
    Registered User
    Join Date
    06-01-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: how to modify,save as new Named Range?

    I'm sorry, I do not understand what you mean. Let me be more explicit. I have a named range,
    DataDiaCVS2011=Offset(Data!$T$5144,0,0,Ndays2011,1)
    I wish to save this and also generate:
    DataDiaCVS2012=Offset(Data!$T$5509,0,0,Ndays2012,1)
    There are dozens of similar cases. A relatively easy and less error prone way to this is to modify the 2011 versions and save them as 2012 versions. I was able to this in Excel 2002. can I do it in Excel 2010?
    Lou

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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