Results 1 to 4 of 4

Thread: EXCE Named Range Corruption
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Jun 2019
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question EXCE Named Range Corruption

    Named Ranges become corrupted readily. I am writing a fairly large application using VBA and named ranges extensively. I have a major problem - it appears that in the event of any error in coding, wherever and not related to anything in particular, the defined named ranges are the first thing to go. Using Offset in name definition. Error is that range locations are replaced with #REF error. This is happening regularly. I have repeatedly gone through name manager, corrected errors and resaved, only to find this error comes back, often without me changing anything.

    I am baffled by this problem and would appreciate any suggestion on how this can be overcome Really holding me up. Thanks

  2. #2
    MrExcel MVP
    Join Date
    May 2006
    Location
    Excel 2003, Australia
    Posts
    9,155
    Post Thanks / Like
    Mentioned
    7 Post(s)
    Tagged
    3 Thread(s)

    Default Re: EXCE Named Range Corruption

    Consider having VBA create/update the named ranges, as required. Then they can be simply defined (as hard ranges) without using OFFSET, MATCH, INDEX, COUNTA, etc, etc
    To receive a better answer, put more work into asking the question.


  3. #3
    New Member
    Join Date
    Jun 2019
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: EXCE Named Range Corruption

    Many thanks Fazza for your reponse. This is my fault but I omitted to mention that I using Dynamic Named Ranges, it is these that are causing all the ptoblems. I do not kow how I could use VBA to create "hard ranges" which at the same time would be dynamic.I suspect this is yet another of the vagaries of Excel which we are expected to put up with. But, if you or anyone else has other ideas I would be pleased to know. Thanks again. Martel

  4. #4
    MrExcel MVP
    Join Date
    May 2006
    Location
    Excel 2003, Australia
    Posts
    9,155
    Post Thanks / Like
    Mentioned
    7 Post(s)
    Tagged
    3 Thread(s)

    Default Re: EXCE Named Range Corruption

    I understood you have dynamic named ranges, Martel. The way to use VBA to create the ranges is to use a programmatic approach instead of the current formulas. Whatever the dynamic formula is doing, having that process done via code.
    To receive a better answer, put more work into asking the question.


Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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