+ Reply to Thread
Results 1 to 3 of 3

Managing External Named Ranges

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    Apex, NC, USA
    MS-Off Ver
    Office 365
    Posts
    64

    Managing External Named Ranges

    I have a (destination) workbook that through a defined name (DefinedName) references a range in another (source) workbook. The definition for the defined name is

    Please Login or Register  to view this content.
    I have put a link (edit links) in the destination workbook for SourceWorkBookName so that I can change the version number or location of the source workbook without changing the many formulas that reference the external range.

    I also have a definition by the same name (DefinedName) in the destination workbook. It is just

    Please Login or Register  to view this content.

    because it points to a range in its own workbook.

    The nature of the application is that the range in the source and its definition gets lengthen by VBA macros as follows:

    Please Login or Register  to view this content.
    etc.

    However, the definition in the destination workbook is not automatically similarly updated. This causes references from the destination workbook to the new rows to fail. As a stopgap, I’ve just chosen to make the definition in the destination workbook arbitrarily large. $s$500 for instance. However eventually, the source definition grows to exceed this, and I’m left a year or so later, having forgotten how all this works, with trying to debug this. (The situation right now.)

    So with this scenario, how am I really supposed to design/implement this? I could have the VBA macro update the definition in both workbooks (it does only the “source workbook” now). However, there must be some mechanism that already exists to get both definitions in sync or to have only one definition that serves both? Using VBA to do the updates is problematic because there are multiple destination workbooks at different times that reference the same source workbook.

    Thanks in advance for any advice.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Managing External Named Ranges

    See if this is simpler:
    http://www.excelforum.com/excel-prog...-workbook.html
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-18-2009
    Location
    Apex, NC, USA
    MS-Off Ver
    Office 365
    Posts
    64

    Re: Managing External Named Ranges

    Yes. That solved it. Thanks for your prompt reply.

+ 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. 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
  2. Programming approach: managing external data with an Excel application
    By Alex Simmons in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2013, 08:11 PM
  3. Excel - External Data: Named Ranges go on increasing.......
    By junoon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2006, 11:00 PM
  4. [SOLVED] Using Named Ranges to Lookup Data in External Workbook
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2005, 01:05 PM
  5. Named Ranges in external Data Sources
    By David in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2005, 10:05 AM
  6. Named Ranges in External Workbook
    By saskin23 in forum Excel General
    Replies: 1
    Last Post: 02-11-2005, 05:07 PM

Tags for this Thread

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