+ Reply to Thread
Results 1 to 2 of 2

mass edit of named ranges (refer to)

  1. #1
    Registered User
    Join Date
    08-05-2016
    Location
    Sydney
    MS-Off Ver
    2019
    Posts
    34

    mass edit of named ranges (refer to)

    Hi all,

    working through a current excel workbook - due to multiple iterations and updates it seems a lot of the named ranges are still referring to a previous model of the excel file.
    Essentially the cell reference is the same in the current version so I need to find a way to change the "refer to" section to remove the old link and replace it with nothing, essentially deleting it.
    I found a few macros but they change the name, not the "refer to"
    Hopefully the pic helps to convey what I am trying to achieve - note this isn't my situation but showing you what I need to change
    thanks!

    [EDIT]: I have uploaded a sample excel file that I just made. similar to what I am experiencing but I have 100's!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by geeman86; 05-29-2022 at 04:52 AM. Reason: upload sample

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: mass edit of named ranges (refer to)

    Perhaps ...
    Please Login or Register  to view this content.
    It simply checks every named range for a ']' character. This delimits a workbook name from a range name and is used to split the definition into an array. The upper bound of the array is the sheet/Cell reference so that is written back to the RefersTo property (Adds back the =' at the start while doing so).

    After re-reading your post, this "...change the "refer to" section to remove the old link and replace it with nothing, essentially deleting it..." is confusing me. You mean to delete the reference to the external workbook or the named range itself? Hopefully, the former...
    Last edited by cytop; 05-29-2022 at 07:52 AM.

+ 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. Creating Named Ranges that Refer to Formulas using VBA
    By ChevyPower in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-09-2019, 09:19 AM
  2. How to refer to one of several named ranges in a formula
    By j_Southern in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2015, 10:39 AM
  3. Mass Replace for Named Ranges with External References
    By gdel in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-10-2014, 09:28 AM
  4. Named Ranges that refer to all of workbook
    By dta1984 in forum Excel General
    Replies: 13
    Last Post: 01-06-2012, 12:20 PM
  5. Mass Creation of Named Ranges?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-12-2006, 04:25 AM
  6. [SOLVED] Mass Creation of Named Ranges?
    By [email protected] in forum Excel General
    Replies: 7
    Last Post: 07-11-2006, 01:35 PM
  7. [SOLVED] List all the named ranges & the cells they refer to on a blank she
    By Hervinder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2006, 07:00 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